Git高级操作技巧
交互式变基
1 | git rebase -i HEAD~3 # 修改最近3个提交 |
二分法调试
1 | git bisect start |
子模块管理
1 | git submodule add https://github.com/example/repo |
贮藏变更
1 | git stash push -m "临时保存" # 贮藏修改 |
选择性提交
1 | git add -p # 交互式选择修改片段 |
- Title: Git高级操作技巧
- Author: 清夏晚风
- Created at : 2026-01-13 16:48:23
- Updated at : 2026-01-13 16:48:23
- Link: https://blog.kimikkorow.eu.org/版本控制管理/Git/Git高级操作技巧/
- License: This work is licensed under CC BY-NC-SA 4.0.