


Note : As per suggestion from different developers, they always suggest to use git from the command line. (this step not required if the file is auto-generated) It also reduces the size of the project uploaded to the server.Ĭreate. gitignore file while uploading projects to Github. Files like generated code, binary files (executables) should not be added to Git (version control). We do not want all the files from Android Studio to be added to Git. Every time we run Gradle or build it creates new files that are changeable from build to build and pc to pc.

The most important thing we forgot here is ignoring the file. Click on the link provided in that message to go to GitHub repository.įirst of all, create a Github account and project in Github. Now the project will be uploaded to the GitHub repository and when uploading is finished we will get a message in android studio showing "Successfully shared project on GitHub".In the next window check all files inorder to add files for initial commit and click OK.Enter Repository name, Description and click Share button. Then go to VCS -> Import into Version Control -> Share Project on GitHub.Enter your email and password used to create GitHub account and click on OK button. Go to File -> Settings -> Version Control -> GitHub.If successful message is shown everything is ok, else navigate to git.exe from where you installed git and test again. Click on test button to test "path to Git executables".Open the project in android studio and go to File -> Settings -> Version Control -> Git.Download git from and install it in your system.Sign up and create a GitHub account in.
