Hi there everyone,
This week I’ll tell you guys how to git commit your android studio projects… So, that you can work from your home or outstation anywhere possible with the same source code
Step 2 : Now, create a new repository as shown

Step 3 : Give name and description and then click “create repository“

Step 4 : Copy the link which will be shown after creating repository

Step 5 : Go to your project in Android Studio and go to VCS -> Import info Version Control -> Create Git Repository…

Step 6 : Now, select your Project folder and click “OK“

Step 7 : Go to your project folder in windows explorer & right click and select “git bash here” ( If you don’t have git installed in your computer… download it here https://git-for-windows.github.io/ )

Step 8 : Now in the command window… type “git remote add origin” and paste the link you’ve copied before ( Ctrl + V won’t work instead use Shift + Ins )
This slideshow requires JavaScript.
Step 9 : Now go to Android Studio, and right click your Project and go to Git -> Add ( the screen will blink for a sec)

Step 10 : Again right click your Project and go to Git -> Commit Directory…

Step 11 : Type a commit message as shown and click “commit“

Step 12 : Again right click your Project and go to Git -> Repository -> Push

Step 13 : select the commit message you typed earlier and click “Push“

Step 14 : Now, go to your github repository and see your project there

Step 15 : For, future update of the same project just follow the steps from “Step 10“
NOTE :
IT’S A GOOD HABIT FOR A PROGRAMMER TO KEEP EVERYTHING ONLINE !!!
Like this:
Like Loading...
[…] Step 3 : Now you can sync your Android Studio with GitHub as given in this step-by-step guide link […]
LikeLike