The git revert command can be considered an 'undo' type command, however, it is not a traditional undo operation. instead of removing the commit from the project, it figures out how to invert the changes introduced by the commit and appends a new commit with the resulting inverse content.
Reverting should be used when you want to apply the inverse of a commit from your project history.
This can be useful, for example, if you are tracking down a bug and find that it was introduced by a single commit. and commiting a new snapshot, you can use git revert to automatically do all of this for you.
invert: put upside down or in the opposite position, order, or arrangement
inverse: opposite or contrary in position, direction, order, or effect.
resource :
https://www.atlassian.com/git/tutorials/undoing-changes/git-revert
Reverting should be used when you want to apply the inverse of a commit from your project history.
This can be useful, for example, if you are tracking down a bug and find that it was introduced by a single commit. and commiting a new snapshot, you can use git revert to automatically do all of this for you.
invert: put upside down or in the opposite position, order, or arrangement
inverse: opposite or contrary in position, direction, order, or effect.
resource :
https://www.atlassian.com/git/tutorials/undoing-changes/git-revert
댓글
댓글 쓰기