In this tutorial, we are going to add an Android application to GitHub. It will help you to how to use the version controlsystem (VCS) for tracking changes in computer files and coordinating work on those files among multiple people and source-code management in software development also.
Note: Git is a revision control system, a tool to manage your source code history. GitHub is a hosting service for Git repositories. So they are not the same thing: Git is the tool, GitHub is the service for projects that use Git.
3.Open the project in android studio and go to File -> Settings -> Version Control -> Git.
Navigate the correct path to Path to Git executable, normally the file installed in C:\Program Files\Git\cmd\git.exe directory. (Click on test button to make sure that’s correct or not.)
4. Go to File -> Settings -> Version Control, make sure there is no entry in that Directory. If any entry in that Directory press minus button to deletethat.
5. Then go to VCS -> Import into Version Control -> Share Project on GitHub. Now you can see a window for login to GitHub, select Auth Type to Password and Login to your GitHub account using GitHub username(or email id) and password.
6.In the next window Enter Repository name, Description and click Share button.
7. check all files inorder to add files for initial commit and click OK.
8. Now the project will be uploaded to the GitHub repository and when uploading is finished you will get a message in the android studio showing “Successfully shared project on GitHub”.