It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pulling a branch created on a different workstation has caused some issues, a little help?

(I am new to source control so please forgive me for any terminology or procedural blunders)

Last night I created a New branch when working in my home office. I made some edits and committed the Branch and pushed it to the remote. When I arrived at my other office this morning I 'pulled' the new remote branch but under options I did not uncheck the commit merged changes immediately. This seems to have 'merged' the changes from the remote branch back into the master branch which I did NOT want to do, I wanted to continue working on the New branch keeping it separate from the master. On my Work computer it now shows a [2] on the Push Icon when I am on the master branch and there was No New branch. I Then Selected the Remote Repo and checked out the new branch and it is now appearing in my local repo, I think that is now solved.

How do I get my Master branch on this system back to 'normal'? There should be NO changes waiting to be pushed on this system for the master branch...

1 answer

0 votes
Ana Retamal Atlassian Team Oct 25, 2017

Hi Michael, are you using Git? In that case, git revert or git reset could be good options for you, you can read more about them at  Undoing changes I encourage you to always have a copy of your repos before performing any of these operations, just in case ;)

In any case, note that this is actually a Git question and not a Sourcetree question, as this is related directly to the way Git works and Sourcetree is just a graphical tool for Git :)

Hope that helps!

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,962 views 0 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you