2 Ways to Undo Merge Commits

2 Ways to Undo Merge Commits

Dimi Tech

54 года назад

37,911 Просмотров

This video shows how to undo git merge commits.

0:00 - The problem
0:20 - git reset
0:43 - git reset --soft
0:59 - git revert

Two commands shown in this video are:
1. git reset [--hard | --soft] {merge_commit}
2. git revert {merge_commit} [-m parent-number]

If you know any more ways to undo merge commits, please let me and the others know in the comments below.

Thanks for watching!

Relevant search terms:
git delete merge commit
git undo merge commit
reverse a merge commit
git revert a merge commit
undo merge

Тэги:

#git #merge #commit #vcs #versioning #github #gitlab #bitbucket #mess #accident #conflict #undo #revert #reverse #linux #command #cli #command-line #tmux #bash #unix #vim #learning #cool
Ссылки и html тэги не поддерживаются


Комментарии: