如何将我的本地仓库合并到远程github?

时间:2018-06-25 14:37:06

标签: github

我的github存储库中有两个项目:project1project2
他们都是从我的pc1中推送的。
现在,我在pc2中对project2进行了一些更改。
如何将我的pc2中的本地仓库project2合并到远程github?

git init
git add project2/
git commit -m "merge"  
git remote add origin  https://xxxx@github.com/xxxx/mytest.git
git push origin master  -f 

以上命令将在我的github中删除project1,仅在github存储库中保留修订过的project2

0 个答案:

没有答案
相关问题