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!
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.
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.
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
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!
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