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

discard files


hi there, is the way to backup or undo discarded files in the source tree?
can you help me, please?

1 answer

0 votes
Ana Retamal Atlassian Team May 29, 2018

HI Shima,

Git is a backup system itself so after accidental deletion or modifications it will be able to bring the files back. If you still want a physical backup, you can just copy the .git directory to a different location. For more information about how Git works, you can read Git backups.

As for undo changes, you can reverse a commit in Sourcetree by right-clicking on the commit.

If you were referring to something different, please let us know and we'll be happy to continue helping you.

Kind regards,


hi Ana,
I really did not understand what should I do and how can I undo my file,
can you help me? thank you

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

7,235 views 5 14
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