[英]How do you add an android studio project to an existing repository on GitHub?
I know how to add a project to a new repository, but I have an already existing repository and I am unsure how to sync my android studio project with this repository. 我知道如何将项目添加到新的存储库,但是我已经有一个存储库,并且不确定如何将我的android studio项目与此存储库同步。
Also, the existing repository is part of an organization on GitHub I belong to. 另外,现有存储库是我所属的GitHub上的组织的一部分。
you can add code to existing repository, by adding the Github repo URL to list of existing remote with a new alias as below: 您可以通过将Github存储库URL添加到具有新别名的现有远程列表中来向现有存储库添加代码,如下所示:
git remote add <alias-name> <repo-url>
Then you can push code to the repo as below: 然后您可以将代码推送到仓库中,如下所示:
git push -u <alias-name> <branch-to-push>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.