Home ›
Git undo part of a commitGit undo part of a commit
Submitted by Benjamin Melançon on August 31, 2010 - 1:42am
Searched words:
undo all local changes
undo part of a commit
git take back some of the last change
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
More like this
- Undo a git add - remove files staged for a git commit
- See what's about to be committed when using git, and remove something before committing
- See your git commit history with files modified
- Automatically deletion of files to commit as well as new and modified files
- Throw out all local changes to a file with Git


Comments
Post new comment