Hi,
I am having a hard time understanding the nuances of git-fetch. I understand that doing a fetch, fetches the remote refs into a local tracking branch.
I have a few questions though:
Can it be possible that a local tracking branch does not exist? If so, then will it be created automatically?
What will happen if I do a fetch and specify a non tracking branch as the destination?
The man page for git-fetch specifies git-fetch How would I use the refspec to fetch contents form my remote master into it's remote tracking branch? I believe this may be possible if I current HEAD is on master and I run
git fetch origin master
However, can I use the <+?src:dest> refpec to achieve the same thing? I think this will help me understand the concepts better.
And one more question:
My .git/config file has the following line for fetching (showing only relevant lines):
fetch = +refs/heads/*:refs/remotes/origin/*
Can someone please explain what this line exactly means.
Thanks in advance for the help.
--
Regards
Parag