Doctor suggest git clean -f if unstaged files

This is safe, I tested various scenarios, including Homebrew installed in ~. The only files that are removed are unexpected files in Homebrew's already managed directories.
This commit is contained in:
Max Howell 2012-08-29 09:03:41 -04:00
parent 2cecc3bd51
commit b834027b17

View File

@ -788,7 +788,7 @@ def check_git_status
If this a surprise to you, then you should stash these modifications. If this a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason. should you later need to do so for some reason.
cd #{HOMEBREW_REPOSITORY} && git stash cd #{HOMEBREW_REPOSITORY}/Library && git stash && git clean -f
EOS EOS
end end
end end