美文网首页
Git子模块命令

Git子模块命令

作者: 莫忘初心_倒霉熊 | 来源:发表于2020-02-23 18:54 被阅读0次
    • 添加子仓库
    git submodule add <git url>
    
    • 子仓库初始化
    git submodule init
    
    • 子仓库更新
    git submodule update
    
    • 子仓库切换分支
    git submodule foreach git checkout <branch-name>
    
    • 子仓库切换版本
    git submodule foreach git reset -- hard <commit-id>
    
    • 子仓库拉取更新
    git submodule 

    相关文章

      网友评论

          本文标题:Git子模块命令

          本文链接:https://www.haomeiwen.com/subject/izrsqhtx.html