美文网首页
git clone用法

git clone用法

作者: 萝莉薇 | 来源:发表于2020-01-09 13:49 被阅读0次

    下载主分支代码:

    git clone  https://github.com/SinevaRobot-BJ/Sineva_VINS_Localization.git
    

    下载指定分支代码:

    git clone -b dev_jk  https://github.com/SinevaRobot-BJ/Sineva_VINS_Localization.git
    

    PS:dev_jk为分支名称,例如下载test分支代码为:

    git clone -b test https://github.com/SinevaRobot-BJ/Sineva_VINS_Localization.git
    

    命令中:多了一个 -b dev-jk,这个dev_jk就是分支,https://github.com/SinevaRobot-BJ/Sineva_VINS_Localization.git为源码的仓库地址
    下载指定分支的代码中到某个目录:

    git clone -b test https://github.com/SinevaRobot-BJ/Sineva_VINS_Localization.git /home/z/
    

    跳过github帐号密码登陆:

    git clone -b test https://用户:密码@github.com/SinevaRobot-BJ/Sineva_VINS_Localization.git /home/z/
    

    相关文章

      网友评论

          本文标题:git clone用法

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