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 操作 #182

Open
lovelmh13 opened this issue Aug 18, 2023 · 0 comments
Open

git rebase 操作 #182

lovelmh13 opened this issue Aug 18, 2023 · 0 comments

Comments

@lovelmh13
Copy link
Owner

image
  1. git rebase -i 到想统一的 commit 那里

  2. 把除了最上面的 pack 以外都改成 s

image
  1. 把不需要的 commit 注释掉

  2. 成功了的话,就 git push -f(!!一定要 -f)

  3. 第二步错了的话,需要再放弃掉刚才的操作(git rebase —abort)

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