Git: merge full repo with another one

This question already has an answer here:

  • Update forked project on GitHub 3 answers
  • How do I update a GitHub forked repository? 16 answers

  • Clone the repository

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

    create a local branch tracking the remote newly created branch

    git branch usrname_activity_dev --track origin/new_remote_branch
    

    checkout this local branch

    git checkout usrname_activity_dev
    

    pull from the remote repo

    git pull
    

    You will have all the contents of remote: branch, tags etc

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

    上一篇: Github在分叉后从上游拉取/更新

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