简体   繁体   中英

How to push project from android studio into specific github folder in existing repository?

Enabling the version control and connecting it to the user account in android studio creates new repository on github for each project and pushes the project to it by default. However, I would like to know if there is a way to setup Android Studio to upload the project to specific folder in already existing repository on github?

As mentioned in the comments, you have to move all your files to that specific folder and commit & push that folder.

You can not commit & push files into something, that is not the idea behind Git. It's mostely about Version Control

  1. First install git-bash (i won't go through the installation) if not installed.
  2. Clone the project on your pc.

    git clone repo-url

  3. Now create the required folder (and add files which you want in that folder) inside the repository you cloned on your pc.

  4. git add .
  5. git commit -m "Message"
  6. git push origin master

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