0

I had added a bunch of files and directories to the staging area with git add --all. After that I received this message "CRLF will be replaced by LF". So I searched up how to solve this problem and came across a medium article which said to type in the following commands.

  1. $ git config --global core.autocrlf input
  2. $ git rm --cached -r . && git reset --hard

After running that I lost all my changes. Is there a way to get back all the changes I made so that I was were I was before running the commands. Thanks.

All the commands I ran:

  1. git add --all
  2. git config --global core.autocrlf input
  3. git rm --cached -r . && git reset --hard
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459

0 Answers0