Skip to content

IamShahabAlam/VCS-with-Android-Studio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vcs_with_as

Version Control System with Android Studio.

Test

  • Push Project without using Git Terminal
  • By using only Android Studio
  • Git add Files
  • Git commit
  • Git repo Creation
  • Git push on Github

GIT Integration with Android Studio

  • Open non-Git project on Android Studio.
  • First Test Git Cofigured
  • Settings > Version Control > Git.
  • Now press Test Button (It will show you Git Version installed).

Add Account

  • Settings > Version Control > GitHub.
  • If its 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.

Push

  • Now 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.

Manually ❌

Creating remote repository

~ Go to your Project Folder.
~ Right Click > Press on Git Bash Here.
Now Follow the given Steps:

  • git init
  • git status
  • git add -A (It'll add all your files in Staging Area)
  • git status
  • git config --global user.name "Your Name"
  • git config --global user.email "YourEmail@gmail.com"
  • git commit -m "Initial commit" (Commit msg for remembrance)
  • git remote add origin ~ URL ~ (Copy URL from github after creating a repository there) (ur URL is saved in origin)
  • git push -u origin master (master branch is selected n pushed to repo)

Demonstration

  • Git Working Structure

  • Git in Android Studio

  • Android Studio's Toolbar with Git Commands

  • Press (Alt + 9)
  • Details about Git

  • Log Screen With many options



Credits

Follow

Medium DEV BuyMeACoffee

 

💙 Fluttering

About

[ TESTING ] Version Control System integration with Android studio, init , add , commit , push

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published