strange delete branches on push

every time a try to push from sourcetree, the push window shows me a branch named "forces", and for default ALWAYS that branch, and don't know who created (maybe a console typing error?).

How can i remove tedinitely that branch "forces", and restore the correct "matching" between local and remote branches so when i open the push window it shows me correctly

master --> master
stable --> stable

AND NOT

master --> foces
stable --> forces

?

Thank you very much :-)

4 answers

1 accepted

tried all those solutions: the only was i solved with was to re-clone the repo ...

Glad you got it sorted out, I don't know how your repo got into this situation since a Fetch with Prune should have had the same effect.

i attach the images (it was not possible on original posting window)

i attach images, it was not possible on the original posting window

Click the 'Fetch' button on the toolbar, and check the prune option before clicking OK. This will delete any remote branches that your local repo has a record of but which no longer exist on the remote.

To change how SourceTree defaults the Push dialog, check out the options in Preferences > Git > Push branches.

seems not working, done what you said, still see that strange branch: is there a way to delete that sort of branches list cache ?

Fetch with prune does delete the local cache of the branches that are on the remote. If it hasn't gotten rid of this branch, it means that it still exists on the remote. If you want to delete it from the remote, you can do so by right-clicking the remote branch in the sidebar (expand the remote entry to see the remote branches, then right-click on it and select delete). Note that this will delete the branch on the remote, not just your own record of it.

tried all those solutions: the only was i solved with was to re-clone the repo ...

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...

431 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