-
Git How to remove files from staging (Changes to be committed)
In Git, we can use git reset HEAD -- 'files/folders/patterns' to remove files or folders from the staging area (Changes to be committed).
Date: 2019-08-11 View: 1520
-
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)
Date: 2019-08-11 View: 1520