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

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

3 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

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

4,363 views 4 8
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