Can any body explain the difference between git merge origin master and git merge origin/master?
I did accidentally did git merge origin master. If it is different, what is the command to reset that merge?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After my test,
$git merge origin masterequals$git merge origin/HEAD master.This means merge two branch (origin/HEAD, master) into current branch, which is very different from
$git merge origin/master.But as usually, master branch and origin/HEAD is in the same commit line, so these two command performs the same.
And I try the case in which master and origin/HEAD diverged, the result shown as the following with
$git merge origin master: