Search

git revert

Requirements
To follow this setup, it is required to have following …
No Requirements
Revert [git revert]
Given one or more existing commits, revert the changes that the related patches introduce, and record some new commits that record them. This requires your working tree to be clean (no modifications from the HEAD commit).
Synopsis [git revert --<synopsis>]
git revert [--[no-]edit] [-n] [-m <parent-number>] [-s] [-S[<keyid>]] <commit>… git revert (--continue | --skip | --abort | --quit)
YAML
복사
SourceTree
1.
Right click on the desired commit
2.
Click Reverse commit...
Commonly Used Commands
git revert <commit hash>
If error
1.
Resolve error
2.
git revert --continue
When Stage but not Commit
git revert --no-commit <commit hash>

Reference