

GitHub provides a hosting solution for your Git repository and offers all the features of Git in addition to features to enhance collaboration between developers using the code repository. Git stands out as the most popular, feature rich, open source, free to use tool for handling the tasks mentioned above as well as many others. Manually remembering the changes you have made to your code of your Android app over time is a difficult task and when you working with a team of developers it becomes outright impossible this is why many developers opt to use a VCS. It is up to you.Using a version control system (VCS) such as Git is useful for many different use cases during Android app development including enabling virtual teams of developers to work independently through branching and merging, reverting changes to code that have caused defects or performance degradation and facilitating code reviews via pull requests. 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.


Download git from and install it in your system.Sign up and create a GitHub account in.
