Re: [git-users] Re: Help! Git deleted my files!

2012-01-11 Thread Trans
Ok. That makes some sense. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To view this discussion on the web visit https://groups.google.com/d/msg/git-users/-/JiwrQLfEtUYJ. To post to this group, send email to git-users@googlegroups.co

[git-users] Re: Help! Git deleted my files!

2012-01-11 Thread Trans
Ah, good to know. Thanks. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To view this discussion on the web visit https://groups.google.com/d/msg/git-users/-/9azpXq6M47sJ. To post to this group, send email to git-users@googlegroups.com

Re: [git-users] Re: Help! Git deleted my files!

2012-01-11 Thread Konstantin Khomoutov
On Tue, 10 Jan 2012 14:47:44 -0800 (PST) Trans wrote: [...] > My mistake was to use `--hard`, but I didn't think it would delete > the files b/c there were not being tracked before this particular > commit. That is logical, just from the opposite point of view: you asked Git to chop off the tip

[git-users] Re: Help! Git deleted my files!

2012-01-11 Thread Thomas Ferris Nicolaisen
We've all been there :) You can also directly reset your current branch to point at the lost commit, instead of making a branch for it: $ git reset --hard shaOfResetCommit -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To view this d

[git-users] Re: git add and untracked file

2012-01-11 Thread Thomas Ferris Nicolaisen
How about "git add -u"? from the docs: -u, --update Only match against already tracked files in the index rather than the working tree. That means that it will never stage new files, but that it will stage modified new contents of tracked file