
To add a project to a GitHub repository using the web interface, log into your GitHub account and navigate to the desired repository. How do I upload an Android Studio project to GitHub? How do I add a project to GitHub repository?Īssuming you have already created a GitHub repository, you can add a project to the repository in two ways: by using the GitHub web interface, or by using the Git command line.

Your project will now be added to the specified GitHub repository. Enter the requested information and click OK. Then, in Android Studio, go to VCS > Import into Version Control > Share Project on GitHub. The ones to look at are Commit Changes (git commit and push) and Update Project (git pull).To add an Android Studio project to GitHub, you will first need to create a GitHub repository. Once that is enabled, the VCS drop down will have more features. You can also look into Github's desktop application if you're on Windows or Mac for a simpler time, but I find these lack some more advanced features of git.ĮDIT: To register your new git repo with Android Studio, Intellij, RubyMine, etc., go to the project settings (File->Settings), search for version control, and specify that your project is using git for version control. You can then use git pull and git push to retrieve and send changes to the server.

On your other computer, you'll be able to clone down the repo you created. If all has gone well, you can reload the github page and see your new push. Don't worry about creating your first commit, we're going to do that on your local machine.Ĭopy the repo link of your choice (I prefer ssh, but it depends on how far you went with the set up part) and head to the terminal. Next, go to GitHub and create a new repository with a title and such.

First, make sure you have git installed and in your path. Best way to do this is probably through the good ol' command line.
