简体   繁体   中英

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.

Also, the existing repository is part of an organization on GitHub I belong to.

you can add code to existing repository, by adding the Github repo URL to list of existing remote with a new alias as below:

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM