Then click ‘Test’ to ensure that Git is configured properly in Android Studio. In Android Studio, go to ‘File’ –> ‘Settings(Ctrl+Alt+S)’ –> ‘Version Control’ –> ‘Git’.
Now click on login button again.- 4 years ago 1. Enter the credentials for github and click login, it will generate the API Token like shown below.ĥ) In the above login screen click the checkbox "Save Credentials" so that we won't have to do this process each time we try create a repository. So first of all click on "Create API token" to generate one.Ĥ) When "Create API Token" is clicked, it will bring up the following screen to login into github.
We will be required to perform this only once since we will be generating an API token during our first login and then will be using this saved token value to login further. Once the project has finished the building process, goto the VCS option on the top menu as shown belowĢ) From the above VCS option navigate VCS > Import into version control > Share project on Github like shown in the image belowģ) Now we will be asked to login with your github credentials before sharing the project on github. Now follow the below steps to create a github repository in the above created account from android studio :ġ) First of all open up android studio and create a brand new android studio project. So Android Studio will help us in creating the repository, adding all the files for commit, commit the files to be pushed and finally push the project to the github repository created.ġ) Download and install git if you haven't already done.Ģ) go here and create a github account > All the hassles will be handled by android studio. It significantly reduces the hassle and also saves a lot of time since we won't be spending much time on writing the commands or be going to the github website to create new repository.
Entire process from repository creation to your first push will be completely carried out on your android studio IDE, provided that you already have git installed on your pc and that you have a valid github account. For this purpose we will not be required to open command line or the web browser. Hi guys in this tutorial we will see how to create a github repository from Android Studio.