Revert Uncommitted Changes in Git
This page answers questions like these:
- How to revert all uncommitted changes in Git?
- How to undo all uncommitted changes in Git?
- How to revert uncommitted changes for a file in Git?
- How to undo uncommitted changes for a file in Git?
Related Links:
Find Git Commit By Line Pattern
Delete the Previous Commit in Git
Change Git Commit Messages
Revert Uncommitted Changes to All Files in git
git reset --hard
- Reverts uncommitted changes to all files.
- Caveats: Dangerous operation which cannot be undone.
Revert Uncommitted Changes to a File in git
git checkout -- FILE ...
- Reverts uncommitted changes to the given file(s).
- Caveats: Dangerous operation which cannot be undone.
Related Links:
Find Git Commit By Line Pattern
Delete the Previous Commit in Git
Change Git Commit Messages
Home > Git > Revert Uncommitted Changes in Git
Tags: git revert all uncommitted changes, git revert uncommitted change, git revert changes, git undo uncommitted change, git undo changes, git, linux, unix, solaris, bsd, aix
Copyright © HelpDoco.com
git-revert-uncommitted-changes.txt
Git/git-revert-uncommitted-changes.htm
2