I am unable to see the branch i am trying to commit to

Hi,

I have had this issue before and the same again today. As I am trying to commit the changes made, I am not able to see the branch name by the commit. 

Push changes immediately to to - <typically you should be able to see the branch you are on but it is empty for me>.

While we are at it, I have created a branch in my Bitbucket using git command but it is not making a difference. Please help me here. Thanks in advance! 

3 answers

Can you include some screenshots to illustrate the problem you're having?

Thanks Tim for your response. Initially, I was not able to see the branch i was on. But now I do, as shown in the image below. I git bashed it by using the following command : 

git branch -u origin/APOLLO28 

I wanted to know if there is another or a better way to overcome this issue in the future. 

Many Thanks. 

image2016-1-25 12:56:25.png

I'm not able to recreate the situation you describe, but it sounds like it was because the local branch was not set to track a remote branch, which is what you rectified with that git command.

When I create a new local branch, it seems like it's automatically assuming I want to push it to a similarly named remote branch, even if that remote branch doesn't exist, but that may be a version dependent behavior.

Your other option would probably be to just commit it and then go to the Push screen to push, because that screen lays out your branch options a little more fully.

Tim, this has been the case lately, so maybe you are right there when you said it could be a version dependent behavior. 

Appreciate you taking your time and walking through the options. Thanks again!

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
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

403 views 0 1
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