Git

Git rebase & Git rebase undo

2018-01-17  本文已影响13人  JaedenKil

git rebase is basically git merge, but in a different way.
From a repo, I :

But on PR page it tells me there is a conflict . So I check the commit history and find out the other case owner has made two commits to master branch. I need to do git rebase.

If some rebase doesn't work well, this can undo it:

git reflog 
git reset --hard HEAD@{n}

Refer to:rebase 01, rebase 02, resolve conflict 01, resolve conflict 02, resolve conflict 03, undo rebase.

上一篇 下一篇

猜你喜欢

热点阅读