In git I did git rm -r .
This was stupid, because apparently it deleted all of my files in my working directory. Many of these files had changes that had not been commited. I was being stupid and didn't commit anything for the past week.
How can I undo this? I want to get back all the changes in my working directory NOT the last checkin on git.
When I run git status
, it shows about 200 files that were deleted. Many of these had changes in my working directory that I would like to keep. How can I do this?
rm -r ...
.git help rm
might have helped!git-rm - Remove files from the working tree and from the index
rm -r
is as dangerous as it can get. One of those things which come with a labelHandle with care