第9章:邪恶的submodule
基础知识
添加/更新submodule的静态部分(.gitmodules/index)
.gitmodules/index)用.gitmodules来更新.git/config
.gitmodules来更新.git/config用.git/config和index来更新repo和worktree
.git/config和index来更新repo和worktreegit submodule update --checkout == git clone
git submodule update --checkout == git clonegit submodule update --checkout [-f] == git switch [-f] <commit>
git submodule update --checkout [-f] == git switch [-f] <commit>git submodule update --rebase == git rebase <commit>
git submodule update --rebase == git rebase <commit>git submodule update --merge == git merge <commit>
git submodule update --merge == git merge <commit>其他两种git config submodule.<name>.update
git config submodule.<name>.update用.gitmodules和index来创建repo和worktree
.gitmodules和index来创建repo和worktree用repo来更新index
用.gitmodules来更新.git/config和repo的URL
.gitmodules来更新.git/config和repo的URL一次性添加.gitmodules、.git/config、index、repo、worktree
.gitmodules、.git/config、index、repo、worktree删除.git/config和worktree
.git/config和worktree删除.gitmodules和index
.gitmodules和index由repo和worktree创建.gitmodules和index
.gitmodules和index总结
最后更新于