Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Source Tree - what is the difference between remove, discard, ignore?

I"m new to Sourcetree, so if I right click on a file in the unstaged files area, there are multiple options. So my question is: what is the difference between remove, ignore and discard? Also, when I just do pull from a branch, why do I need to commit unstaged files? I just want to do a pull (update). And how I can just compare a file with this remote version? Thank you!

like image 801
Maor Shetrit Avatar asked Feb 25 '18 08:02

Maor Shetrit


1 Answers

Ignore - ignore this filename/location. File is added to .gitignore.

Discard - discard current unstaged/uncommited changes done in this file.

Remove - removes file from filesystem.

like image 157
Rafał Ludwiczak Avatar answered Sep 28 '22 18:09

Rafał Ludwiczak