I wanted to remove a file added by mistake in a commit in Git
I tried this code, but was surprised that it remove the file definitively. who can help me please?
Please who can help me? All my tests have failed.
I did when following this link Remove files from Git commit:
git reset --soft HEAD^
git reset --soft HEAD~1
git reset HEAD path/to/unwanted_file
git commit -m 'remove unwanted file'