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

How can I overwrite all my local changes and pull everything on the server to my machine?

Without messing everything up, like last time I tried to work GIT by myself.

2 answers

1 accepted

2 votes
Answer accepted
  • Press the big "Discard" button at the top of the SourceTree window and discard all your changes in the dialog that comes up
  • Pull

I'm using Mac, there is no "Discard" button, but there is a "Remove" one? Should I select all my files then click remove, then pull?

On Mac OS it is called "Reset", between "Checkout" and "Stash".

Do NOT "Remove". That will remove files from the repo, and register them as additional local changes.

This is more difficult than it needs to be due to some inconsistencies and bugs. First of all make sure to be on the File Status tab. Then use the Reset... context menu or the reset button in the main toolbar (the Reset button is hidden by default (mac) and needs to be installed in the toolbar first). The reset menu item or button will often only become active once at least on unstaged file is checked which is awkward since it also handles the Reset All command and at times it may become impossible to activate these. Finally the file status after reset is not immediately reflected and there is no progress indication.

Suggest an answer

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

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

1,959 views 0 10
Read article

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