美文网首页
git fork upstream

git fork upstream

作者: tyoko | 来源:发表于2018-12-24 13:19 被阅读0次

    Configuring a remote for a fork

    config_remote.png
    Syncing a fork
    git remote -v
    git remote add upstream url/for/upstream/git
    git remote -v
    git fetch upstream
    

    git config user.name "username" ====> for local project ***项目的根目录,与.git同个目录
    git config --global user.name "username" ====> for global

    local branch sync with upstream master
    local terminal: git checkout [local branch] git fetch upstream master
    git merge upstream/master git push origin master

    相关文章

      网友评论

          本文标题:git fork upstream

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