Undo the last commit: (Cancel the commit action, but the add file operation before the commit will not be canceled. If you want to cancel the added file, right-click delete (keep local))
git reset --soft HEAD ~ 1
Git common operations (to be updated ...)
Guess you like
Origin www.cnblogs.com/w-yu-chen/p/12750496.html
Ranking