用户工具

站点工具


git

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
git [2020/09/27 14:38] ploughgit [Unknown date] (当前版本) – 移除 - 外部编辑 (Unknown date) 127.0.0.1
行 1: 行 1:
-===== cherry pick ===== 
-[[https://www.ruanyifeng.com/blog/2020/04/git-cherry-pick.html|阮一峰的教程]] 
-<code> 
-# 单个提交 
-git cherry-pick <commitHash> 
-# 连续多个提交 
-git cherry-pick <HashA> <HashB> 
-</code> 
  
-===== submodule ===== 
-[[https://git-scm.com/book/zh/v2/Git-%E5%B7%A5%E5%85%B7-%E5%AD%90%E6%A8%A1%E5%9D%97|Git 工具 - 子模块]] 
-  * 数字列表项目子模块的配置文件:repo主目录下的 .gitmodules(不建议直接改这个文件) 
-<code> 
-# 创建一个子模块 
-git submodule add git@gitlab.xxx.com:A/B.git 
-# 创建一个子模块并指定分支和路径 
-git submodule add -b feature/test001 -- "git@gitlab.xxx.com:A/B.git" "yyy/zzz/B" 
- 
-# 更新子模块(子模块的内容切换为外部 repo 记录的 hash 号) 
-git submodule update --init --recursive 
-# 更新子模块(子模块的内容为对应分支上的最新提交) 
-git submodule update --init --recursive --remote 
- 
-# 列出所有子模块 
-git submodule 
-</code> 
- 
-===== 压缩commit ===== 
-[[https://blog.csdn.net/itfootball/article/details/44154121|git中利用rebase来压缩多次提交]] 
-<code> 
-git rebase -i HEAD~4 
-</code> 
git.1601188735.txt.gz · 最后更改: 2022/12/28 17:53 (外部编辑)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki