Skip to content

Commit

Permalink
feat: Update Code
Browse files Browse the repository at this point in the history
  • Loading branch information
pipe.zkk committed Sep 26, 2024
1 parent 730cb78 commit 90b6eb8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions _posts/2024-07~09/2024-09-26-git-rollback-master.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ tags: [git]
* `git branch -f master rollback` 强制更新本地 master 分支指向到 rollback 分支
* `git push --force origin master` 强制更新远程 origin/master 分支

cherry-pick

* `git cherry-pick xxx..xxx` cherry-pick the range of commit id

## 谨慎应对

Expand Down Expand Up @@ -110,6 +107,16 @@ cherry-pick
```


## CherryPick


* `git cherry-pick xxx..xxx` cherry-pick 指定范围的 commit
* 但此处需保障两个 commit 之间是有关系的,而不是断开的,否则无法正常 pick
* `git cherry-pick --continue` 执行 --continue
* 一般情况下,会有冲突,需一个个解决
* 解决完冲突后,需执行 `git add path/to/file`


# 参考

* [Learn Git Branching](https://zhoukekestar.github.io/notes/2018/12/23/git-branch.html)

0 comments on commit 90b6eb8

Please sign in to comment.