I thought git pull= git fetch+git merge
It is useful to pull the changes to remote branches sometime, until you encounter a situation where the git pullnewly created branch is not pulled into . By the newly created branch, I meant that "someone else" just created a new branch and clicked on the remote one, and I tried to do it git pull, but I do not get a new branch in my list of deleted branches.
I managed to get this newly created branch only after I did git fetch, and then git merge.
Question:
Does this mean that you always do it git pullonly when you want to pull changes to an existing branch and do git fetch+ git mergewhen you want to pull the newly created branch?
Edit:
Thanks @uDaY. Now I understand how to do this in git bash. But I wonder if we want to do this from the Eclipse IDE, how can we notify the Eclipse git pull utility to execute git pull -allinstead of the standard one git pull? Any thoughts?
Update1: Ignore it, I will post as a new question.
Update2: 09/23/2015 Well, another question is not needed, I figured it out. Here it is,
Pull is basically fetch + merge
Therefore, unless you determine that the extracts really need to be extracted, you cannot expect to pull what you intend to pull!
, eclipse pull, 'Fetch'.
..:
project- > Team- > Remote- > Configure Fetch from Upstream
.
, - 'refmappings'. , Advanced,
, " " - Fetch - refs
, Source Ref "refs/heads/" Destination Ref "refs/remotes/origin/" Force Update.
, 'Source ref:' , : newbranch,
" ref:" , : origin/newbranch, "+ ",
"". .
, .