git clone git_link
Firstly add subtree, from which you want to pull the repo.
git subtree add --prefix=path_name git_link master
run 'ls' you'll see the the repo to be merged.
run 'git push origin master' to merge two repos.
git clone git_link
Firstly add subtree, from which you want to pull the repo.
git subtree add --prefix=path_name git_link master
run 'ls' you'll see the the repo to be merged.
run 'git push origin master' to merge two repos.
本文标题:git merge two repos
本文链接:https://www.haomeiwen.com/subject/mtzooxtx.html
网友评论