git - How to push a new local branch to remote repo and track it too - Stack Overflowhttp://stackoverflow.com/questions/2765421/how-to-push-a-new-local-branch-to-remote-repo-and-track-it-too
Lorsque l'on pousse une branche nouvellement créée dans git cette dernière n'est pas automatiquement tracké et donc lorsque l'on fit un git pull ou push, git indique qu il faut donner le "chemin" de la branche en y ajoutant --set-upstream.
git checkout -b prod
git push origin prod
git pull
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> prod
SAUF si on pousse la branche avec l'option -u :
git checkout -b prod
git push -u origin prod
git pull