Home ›
Git undo part of a commitGit undo part of a commit
Submitted by Benjamin Melançon on August 31, 2010 - 1:42am
To revert an entire commit.
git checkout <file>
re-checkout <file>, overwriting any local changes
Should be able to git add changed files that you are interested in committing the revised changes and git commit --amend
http://stackoverflow.com/questions/927358/git-undo-last-commit
Searched words:
undo all local changes
undo part of a commit
git take back some of the last change
Comments
Post new comment