
Now it is time to add Git or initialize git to your project. And paste your code and click add account. Login to your account and then create 'New personal access token' and scroll down and click 'Generate Token' this will generate a new unique secret token(never share this with anyone), copy it, and go back to Android Studio where we left off. To connect open android studio then Customize > All Settings > Version Control > GitHub >Click on '+' icon from the bottom left > Login with Token > Generate After this in browser a GitHub login page will open. Now it is time to connect Android Studio with Github. If you have other Linux-based distros visit this link for more info Connect Android Studio with GitHub Setup Git on your deviceįor windows go to the official website of Git and download the EXE file as your system requirement, and installation like a normal file installation.įor mac install git by using this command And GitHub is a platform where you can host your Git projects and Collaboration, integrated issue, bug track of your projects (Read more about GitHub). Git is a version control system, by using Git you can track your code and easily undo-redo and watch previous code without any hesitation (Read more about Git from the official Git website). Setup Android Developer Studio | devroyal.If you are an android developer you should need to know how to set up Git and GitHub for your android studio projects. Github - How to clone a remote git repository with Android Studio? - Stack Overflow ReferencesĪndroid Studio Git Tutorial (Part 1) « Wii's Blog Now the project should be imported to Android Studio and you should be able to commit and push future changes back to GitHub. Provide your GitHub username and password. Paste the HTTPS path you obtained from GitHub in the previous step and click on. Go to Android Studio and go to Menu / VCS / Checkout from Version Control / Git Step 4: Import the Git project to Android Studio Go to the GitHub page and get the HTTPs path to your repository. Step 3: Get the Path to your Repository from Github Here define the path to the git executable you have just installed. In the Setting dialog open the page Version Control / Git. Step 2: Link git executable to Android Studio Just choose the settings you deem the most appropriate. Most settings available during the installation process should be compatible with Android studio. Perform the following steps to import your project. You have an existing GitHub project and would like to import it to Android Studio.
