Git undo local commitLast updated on Mar 10, 2021 1 min read Git久唔久就會大意地 Commit 錯野發現以下這個 git commandGit undo pushed commit and keep changes unstage解決方法 git reset HEAD^ GitChi YauSoftware DeveloperInterest to share knowledge / experiencePlease enable JavaScript to view the comments powered by Disqus.comments powered by DisqusRelatedHow to install wifite on Raspbian - 如何在 Raspbian / ubuntu 上安裝 wifiteHow to untrack committed file - 如果在git 上 untrack committed file.gitignore include a file from excluded foldergit Create branch via CommandGit Your branch have diverged and have 1 and 1 different commits each, respectively