【Git】常用操作

【Git】常用操作

合并多次提交

git rebase -i <commitid>

重命名分支

## 在当前分支
git branch -m new_branch_name

## 不在当前分支
git branch -m old_branch_name new_branch_name

合并分支某次提交

git cherry-pick <commitid>
posted @ 2023-12-08 16:23  WilsonPan  阅读(21)  评论(0)    收藏  举报