I want to be sure that I don't accidentally delete some untracked files when working with a git repository.
The commands I am aware of that can delete untracked files are:
git clean
obviously, its purpose is to delete untracked files.git stash -u
, the files are deleted from working directory, but kept in the stash.
Are there other circumstances under which git
will delete untracked files?