I am not able to use pull, push, branch merge

0 votes

I am not able to use these below commands

pull, push, branch merge 

$ git push origin master
To https://github.com/jnan2017/firsttest.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to "https://github.com/jnan2017/firsttest.git"
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., "git pull ...") before pushing again.
hint: See the "Note about fast-forwards" in "git push --help" for details.
May 23 in Git & GitHub by Imran
40 views

1 answer to this question.

0 votes

Please execute the below command in the terminal to solve the problem:

1. git pull origin master --allow-unrelated-histories
2. git pull origin master
3. git push -u origin master
answered May 23 by Umer

Related Questions In Git & GitHub

0 votes
1 answer
0 votes
1 answer

How to do a re-merge into another branch in git

Seems like you want to rebase your ...READ MORE

answered May 7, 2018 in Git & GitHub by DareDev
• 6,810 points
158 views
0 votes
1 answer

Error: git pull fails “unable to resolve reference” “unable to update local ref”

This happens when there are unnecessary files ...READ MORE

answered Jul 26, 2018 in Git & GitHub by Sophie may
• 9,850 points
1,201 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
180 views
0 votes
1 answer
+1 vote
4 answers

GIT plugin in jenkins not able to connect to GIT repository

This looks like a git configuration issue, ...READ MORE

answered Oct 25, 2018 in Git & GitHub by Alia
1,879 views
0 votes
1 answer