Skip to content

Commit

Permalink
Update and rename cherry-pick多笔之后合并成一笔提交.md to 3.cherry-pick多笔之后合并成一笔…
Browse files Browse the repository at this point in the history
…提交.md
  • Loading branch information
SkyHots authored Jan 3, 2023
1 parent 6e9ee71 commit d817dda
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
### git cherry-pick commit-idA commit-idB commit-idC
### 1.git cherry-pick commit-idA commit-idB commit-idC
https://blog.csdn.net/qq_41084438/article/details/123783673

### 合并到多笔commit修改 git rebase -i HEAD~3
1.git cherry-pick commit-idA commit-idB commit-idC
2.解冲突
3.git add . 提交到缓存区
4.git cherry-pick --continue

### 2.合并到多笔commit修改 git rebase -i HEAD~3
https://blog.csdn.net/SmileToLin/article/details/125630862

1.合并到多笔commit修改
合并到多笔commit修改
在使用git时经常会遇到多笔commit修改同一个问题的情况,在提交时,往往只希望将这些commit作为一笔commit提交,可以通过commit指令达到这个目的。假设我们希望将最近的N笔commit合并成一笔

首先执行命令 git rebase -i HEAD~N
Expand Down

0 comments on commit d817dda

Please sign in to comment.