Android Studio and git

You can clone a git repository to Android Studio.

Click the third option Check out project from Version Control and then select Git

Android studio and git with github, <span>Android Studio and git</span>, KandZ

Now specify the repository, choose the directory you want to clone repository and click Clone. You can click Test if you want to test the connection to the repository

Android studio and git with github, <span>Android Studio and git</span>, KandZ

If it a private repository you need to specify the username and the password. Click Log In

Android studio and git with github, <span>Android Studio and git</span>, KandZ

Enable Version Control

click VCS > Enable Version Control Integration. Now Select Git and click OK

Android studio and git with github, <span>Android Studio and git</span>, KandZ

If Version Control tab is not visible at the tab, click Alt + 9 or View > Tool Windows > Version Control

Android studio and git with github, <span>Android Studio and git</span>, KandZ

Files with blue color are files with changes

Android studio and git with github, <span>Android Studio and git</span>, KandZ

Right-click a file at Local Changes and select Commit.

Android studio and git with github, <span>Android Studio and git</span>, KandZ

Specify Commit Message and click Commit. Color changes to white.

Android studio and git with github, <span>Android Studio and git</span>, KandZ

Add project to Github.

First, you need to add an account for GitHub. Go to File > Settings > Version Control > GitHub. Click Add account.

Android studio and git with github, <span>Android Studio and git</span>, KandZ

Specify your GitHub username and password. Click Log in

Android studio and git with github, <span>Android Studio and git</span>, KandZ

Account added. Click OK to close this window

Android studio and git with github, <span>Android Studio and git</span>, KandZ

Then go to VCS > Import into Version Control > Share Project on GitHub. Now enter Repository name, Description and click the Share button. Check all the files to add them for initial commit and click OK. That was all.

THE END!!!

91100cookie-checkAndroid Studio and gitAndroid Studio and git

Related posts

One Thought to “Android Studio and git

Comments are closed.