0

Dumb rookie mistake. Initialize a git repository in /usr/local/Library.

git init
git add -A

Whoops, don't want to commit all those files

git rm -rf .
ls # EMPTY

Didn't do an initial commit, so git reset HEAD doesn't work. Is there a way to recover the contents of my /usr/local/Library directory?

Nick Volynkin
  • 14,023
  • 6
  • 43
  • 67
chaoborid
  • 49
  • 4

1 Answers1

0

I just tried this and it seems like you're out of luck.

If you're on OS X or Linux try looking in the .git folder with this command:

find .git -type f

taco
  • 1,367
  • 17
  • 32
  • *If you're on OS X or Linux [...]* `/usr/local/Library` indicates that the OP is on Mac OS X. – jub0bs Mar 20 '15 at 04:03
  • I wrote it that way because you want to try and write answers that will be helpful to others who come along looking for the answer as well. – taco Mar 20 '15 at 05:31