Introduction
In this Articles i am going to tell you how you can easily minimize your work by integrating Version Control System with the Android Studio in few simple steps.
Setup
GIT Integration with Android Studio
- Open non-Git project on Android Studio.
- First Test Git Configured
- Settings > Version Control > Git.
Now press Test Button (It will show you Git Version installed).
Add AccountSettings > Version Control > Github.
If itโs showing error try this.
Settings > Version Control > Git.
File > new > Project from VC > Github > give Token.
Steps for Creating Repository
Add
- VCS > Import into VC > Create Git Repository. (All Files will become brown)
- Select Your Project Folder OR Click On (Android Icon) Project Directory.
- Now Select your Project folder in left Project section.
- VCS > GIT > Add (ctrl + alt + A) (All files will turn green).
Commit
- In Tool Bar, Click purple arrow button (commit) (ctrl + k)
- Unselect those files whome u donโt want to commit
- Give commit msg.
press commit button
.
PushNow In Tool Bar, Press push button (Green Arrow) (ctrl + shift + k)
Create repo in Github, copy the URL
Come to A.S , Press on Define Remote
Paste in the URL press OK.
Press Push button.
Git In Android Studio
Android Studio Toolbar with Git commands
Details about Git in Android Studio
- Press (Alt + 9)
Log Screen with plenty of options
Github Link https://github.com/IamShahabAlam/VCS-with-Android-Studio
CREDITS
Follow Here
๐ Fluttering
Top comments (0)