Marat
Marat

Reputation: 6703

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?

Upvotes: 1

Views: 2199

Answers (2)

Kushagra
Kushagra

Reputation: 89

  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

Upvotes: 1

jay
jay

Reputation: 146

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

Upvotes: 1

Related Questions