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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Sourcetree Refresh branches

Is there a way that my remote branches can be refreshed in source tree? For example, if there is a branch that developer A pushed up to origin, and then deleted from origin, then that branch still displays on my view in source tree under remotes. The strange thing is that I can still check out this remote branch, even though it was deleted and is no longer visable via stash.

4 answers

1 accepted

78 votes
Answer accepted

Another option is to use the explicit 'Fetch' button on the toolbar and check the 'Prune' option. This will remove all remote branches which you have a local record of, but are no longer actually present on the remote.

Hi David,

By default Git does the safe thing and never deletes a remote branch unless explictly asked (which is a good thing IMHO). What you really want is to 'prune' your remote:



Thank you for your answer, this helps a lot in keeping everything cleaned up.

Hi David,

This is because we auto-fetch remotes. A pull just merges fetched branches which is why it's still possible when the remote branch has been deleted. You can just delete the branch locally to get rid of it.

Hope that helps

And how does one know that it's OK to "locally" delete the branch on origin?

i am using source tree version which is unable to fetch remote branches locally.


i used Fetch is unable to pull all remote branches locally

i am unable to delete my post above. how to delete above post?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

3,190 views 19 18
Join discussion

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