Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,306
Community Members
 
Community Events
176
Community Groups

Branches are no longer listed for push after rename local branch name

SourceTree can push changes from local branch to remote branch fine. 

But after renaming local branch,  which causes local and remote branch have different name, then Push window no longer list those branches.

If change local branch name back, branch back to list in Push popup window. 

Tested on latest SourceTree and embeded Git as of 1/21/2021.

2 answers

0 votes
Chris I'm New Here Jan 12, 2023

I just had the same issue. The way I fixed it was:

  • Rename the local branch
  • Check out the renamed branch
  • Open the Terminal from the toolbar
  • git push --set-upstream remote-name new-branch-name
  • Delete the old branch from the remote

My renamed branch is now in listed in the push menu again

0 votes
Fadoua Community Leader Jan 12, 2021

@Ryan Liu 

Once I download the repo to my local machine. Any changes I make I push them using feature branch.

My feature branch can have any name of my choice.

Once in Git I always make sure I am inside the right branch before committing. Otherwise nothing will get pushed

What is the error you are getting?

Best,

Fadoua

Hi Fadoua,

No error. As said in the question, just renamed branch no longer listed in Push window. 

Other tools like Git Extension has no such problem, it does not require local and remote branch to have same name.  


Ocz, I can always do it in cmd line.  I am reporting a SourceTree  UI bug.  Should easy to fix.


Thanks,

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS

Atlassian Community Events