Lets suppose i am in a local ABC with branches branch_A and branch_B.
From repo_A, what are the differences between:
- git push origin
- git push origin branch_A
- git push origin branch_A:branch_A
The reason for question is the following sequence of events, i find to be surprising:
11:05:56 ~/blah $ git push origin
Counting objects: 31, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (13/13), done.
Writing objects: 100% (17/17), 1.28 KiB, done.
Total 17 (delta 10), reused 0 (delta 0)
To ssh://git@mygit/myrepo.git
141fc0d..d42c3b6 branch_B -> branch_B // While i was in branch_A
11:06:02 ~/blah $ git branch
branch_A
* branch_B
repo_Aandrepo_Bwhen it appears that those are branch names within those repositories.