Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git rebase 如何回退 #11

Open
leopen-hu opened this issue Jan 17, 2018 · 0 comments
Open

git rebase 如何回退 #11

leopen-hu opened this issue Jan 17, 2018 · 0 comments

Comments

@leopen-hu
Copy link
Owner

leopen-hu commented Jan 17, 2018

-- 大多数人会告诉你 git reset
-- 但是观察 git log 后你会发现不知道应该回退到哪个 head
-- 打开 .git/logs/refs/heads 中对应分支的文件

18bab9c1826aa0c9baf5ff97731f43c7ec8b6cfa 43436cdf30b4104f42ecd4bfdbe2b04aef05ba99 [email protected] <[email protected]> 1516161174 +0800	rebase finished: refs/heads/dev onto 3fdf289e964245ef4e7b959edb1e74d16b18afd0

-- 找到对应的 rebase finished 语句,reset 到前面的 head 即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant