git merge two repos

2018-01-19  本文已影响0人  hi小羊

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.

上一篇 下一篇

猜你喜欢

热点阅读