I am new to using GIT and I read the documentation guide but I can't seem to wrap my head around one thing.
Let's say the github source contains two branches, master and foobar. Now, when I do git branch on my system, it shows the names of both the branches which means I have both the branches on my system.
However, when I do a git checkout foobar and then do git pull, nothing really happens and instead git tells me,
`There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details.
git pull <remote> <branch> If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> foobar `
It's only when I execute git pull origin foobar are the files modified and changed according to what has been updated on GitHub. Why does this happen? Where am I going wrong in doing git pull. AFAIK, I thought doing git pull will update my current branch to the latest code commits.