Git:将完整的回购与另一个合并

这个问题在这里已经有了答案:

  • 更新GitHub 3答案的分叉项目
  • 我如何更新GitHub分叉库? 16个答案

  • 克隆存储库

    git clone git@itpsmgit1.magnetimarelli.com:tegra/repo_dir
    

    创建一个本地分支来跟踪远程新创建的分支

    git branch usrname_activity_dev --track origin/new_remote_branch
    

    结帐这个地方分支

    git checkout usrname_activity_dev
    

    从远程回购拉

    git pull
    

    您将拥有远程的所有内容:分支,标签等

    链接地址: http://www.djcxy.com/p/18063.html

    上一篇: Git: merge full repo with another one

    下一篇: Update pull requests (add commits)