2017-02-01 61 views

回答

0

如果其他代碼也在github上,我建議將它叉到那裏,然後克隆你的叉子。

如果你有alredy開始在你的克隆工作,你可以添加另一個remote repository。你克隆原來的源通常被稱爲「出身」,就像你希望你能說出你的:

git remote add <name-of-remote> git://github.com/user/repo.git 

之後,你可以使用-u推送到回購(設置原點)參數:

git push -u <name-of-remote> <branch> 

反之亦然。當你第一次叉,克隆你的叉,那麼你的叉子被稱爲「原點」,然後你可以添加原始來源爲「上游」使用:

git remote add upstream <url-of-original-repo> 

See also

相關問題