Tuesday, June 9, 2020

Git Commands

If you want to "uncommit" the commits, but keep the changes around for reworking, remove the "--hard": git reset HEAD^ which will evict the commits from the branch and from the index, but leave the working tree around.

git reset HEAD^ -- This uncommits the local changes and show it as modified file. 

https://sethrobertson.github.io/GitFixUm/fixup.html#remove_last

No comments: