Git – How to undo the last commit?
In Git, we can use git reset –soft HEAD~1 to undo the last commit in local. (The committed files haven’t pushed to the remote git server) 1. Case Study git commit and find out some unwanted target/* files are committed accidentally, I haven’t issue the git push, any idea how to undo the commit? Terminal …