If you have not committed yet then find the last commit
git rev-list -n 1 HEAD -- <file_path>
git checkout <deleting_commit>^ -- <file_path>
No comments:
Post a Comment