How is it possible to push to origin/master but commits land in origin/some-branch? Edited


  • Team with several members
  • One member starts a branch
  • Another one makes a commit that goes to that branch
  • 3 other members are making commits (with git cmd & Idea) and pushing to master, but actually those commits are going to this branch (they don't realize about this)
  • Person who made the commit, clones a fresh copy, commits& pushes again, correctly to master.
  • Another team member commits & pushes correctly to master unadvertently. His previous commits had gone to the branch.
  • At some point we realize of this. Checking local working copies, commits are in master & origin/master, checking bitbucket page they are on this other branch
  • Fetching we get actual remote status in our local with no issues
  • One of us cherry picked all the commits that should be on master to master, pushed them and every thing went alright

How is this possible in general? What's the mecanism that allows this behavior? 

For some time working copies were pushing to their origin/master, although commits were landing in origin/some-branch.

0 answers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

164 views 20 8
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you