Git pulling a branch from another repository?

后端 未结 2 756
没有蜡笔的小新
没有蜡笔的小新 2021-01-29 18:39

I have a local git repository which is a clone of a repository on github. Someone has forked the repository and made changes in a new branch on a new repository. I want to move

2条回答
  •  失恋的感觉
    2021-01-29 19:30

    Method without adding remote.

    git checkout --orphan fork_branch
    git reset --hard
    git pull  
    

提交回复
热议问题