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, 2019 in Git & GitHub by Imran

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, 2019 by Umer

Related Questions In Git & GitHub

0 votes
1 answer
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,890 points
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 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
0 votes
1 answer