简体   繁体   English

如何将android studio项目添加到GitHub上的现有存储库?

[英]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.

相关问题 如何将现有的 Android Studio 项目连接到现有的 Github 存储库 - How to connect existing Android Studio project to existing Github repository 如何将现有的.so库添加到Android Studio项目中? - How do you add an existing .so library to an Android Studio project? 如何将监视模块添加到现有的 Android Studio 项目? - How do you add a watch module to an existing Android Studio project? 将 github 项目添加到现有的 Android Studio 项目中 - Add github project to existing Android Studio project 如何将项目从 android studio 推送到现有存储库中的特定 github 文件夹? - How to push project from android studio into specific github folder in existing repository? 如何将新的Android应用程序添加到现有项目? - How do you add a new Android Application to existing project? 要在GitHub Repository上添加的Android Studio Project下的文件列表是什么? - What are the list of files under Android Studio Project to add on GitHub Repository? 如何使用/导入github项目到现有的android studio项目? - How to use/import a github project into existing android studio project? 如何将项目导入到android studio中,该项目实际上是我已经克隆到计算机的github存储库? - How do I import a project into android studio that is actually a github repository that I have already cloned to my computer? 如何将Android Studio项目导出到特定存储库中的新GitHub分支? - How to export an Android Studio project to a new GitHub branch in a specific Repository?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM