git push in --tracked branches.
- From
- Aghiles <aghilesk@gmail.com>
- Date
- Apr 22, 2010, 00:02 UTC
- Message-ID
- <y2w3abd05a91004211702qf4cd42bau20ac52a4d35a6bf1@mail.gmail.com>
So I created a branch that tracks 'origin' which is remote:
git checkout -b small_fixes origin
I can do a 'git pull' and everything works as expected. I did some commits in this branch and I issue a 'git push'. To my surprise the 'git push' is still operating on the master and not the current 'small_fixes' branch! What is the rationale behind this ? I would expect to push from my current branch to origin (especially that I am --tracking origin).
-- aghiles