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

Situation:

  • 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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

706 views 0 4
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot