What is the difference between git pull origin master and git pull origin/master ?
What is the difference between git pull origin master and git pull origin/master ?
Share
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.
git pull origin masterwill pull changes from theoriginremote,masterbranch and merge them to the local checked-out branch.git pull origin/masterwill pull changes from the locally stored branchorigin/masterand merge that to the local checked-out branch. Theorigin/masterbranch is essentially a “cached copy” of what was last pulled fromorigin, which is why it’s called a remote branch in git parlance. This might be somewhat confusing.You can see what branches are available with
git branchandgit branch -rto see the “remote branches”.