- git fetch, git fetch, make sure all local branch is up to date.
- git log origin/master, get the latest commit hash number hash_xxx.
- git rebase -i hash_xxx, and change the pickup to fixup except the first line.
- git push --force origin your_local_branch:your_remote_branch, push the local branch to master.
如何用git rebase 去解决多个commit,并合并成单个commit
最新推荐文章于 2024-05-23 11:01:41 发布