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.
- $ git config --global core.autocrlf input
- $ 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:
- git add --all
- git config --global core.autocrlf input
- git rm --cached -r . && git reset --hard