Skip to main content
format expression
Source Link
Arount
  • 10.5k
  • 1
  • 35
  • 45

I am new to Git and I think I removed files on my local accidentaly. I used this command git rm -r --cached .git rm -r --cached . and it removed the files. But I didn't commit it yet. 

How can I undo it?

I am new to Git and I think I removed files on my local accidentaly. I used this command git rm -r --cached . and it removed the files. But I didn't commit it yet. How can I undo it?

I am new to Git and I think I removed files on my local accidentaly. I used this command git rm -r --cached . and it removed the files. But I didn't commit it yet. 

How can I undo it?

Source Link
jejerome
  • 168
  • 1
  • 17

Undo git rm -r cached

I am new to Git and I think I removed files on my local accidentaly. I used this command git rm -r --cached . and it removed the files. But I didn't commit it yet. How can I undo it?