I don't know if I'm misusing Git, or if I've got a configuration problem.
I clone my Github repos onto machine A and B, then on machine A I do:
git checkout -b branchA
// make edits
git add .
git commit -am "initial"
git push
then on machine B I do:
git pull
git checkout branchA
// make edits
git commit -am "edits"
git push
on machine A I then do:
git pull
However it says:
There is no tracking information for the current branch
so I have to do:
git branch --set-upstream branchA origin/branchA
Why do I have to set the upstream, when it originally pushed it to origin/branchA without problem?
I'm using msygit 1.8. on Windows.
P.S. when i do the pull
on machine B, why isnt the new branch branchA
tracked by default? git branch
doesnt show it (but it does with -r
). Can I make all new remote branches be tracked by default when i pull?