I just cleaned a file while exploring cleaning option in git. How can i get that file back ?
I used below command: git clean path/file_01.py -i
Then i selected: 4: ask each
Finally, presseed 'y' instead 'N' yes
I just cleaned a file while exploring cleaning option in git. How can i get that file back ?
I used below command: git clean path/file_01.py -i
Then i selected: 4: ask each
Finally, presseed 'y' instead 'N' yes
git clean
only removes files that aren't tracked by git in the first place, so there's no git-trick that can recover such a file once it's gone.