----- Original Message ----- 
  From: André Hänsel 
  To: git-users@googlegroups.com 
  Sent: Monday, June 02, 2014 7:48 AM
  Subject: [git-users] git reset with staged changes


  I just learned painfully that git reset --hard deletes any previously 
untracked files that have been staged. I had to recover them one by one using 
git fsck.


  Before I did the reset I actually checked the list of files and saw them but 
I assumed that after the reset those files would be unstaged and untracked 
again. It just seemed the most natural bahavior.


  Is this a missing feature or is it in fact more logical to delete them?
 
An alternative question would be, "Could the man page be improved so that what 
you ned was spotted sooner?". 

I ask because a similar discussion is happening on the developers list? (Aside: 
what reference material do you normally check in these cases?)

Philip
--

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to