Push your Android Project to Github

Fatima Yousif
3 min readAug 1, 2021
https://www.toolsqa.com/git/git-push/

Are you a beginner in Android Development trying to find a guide to push(upload) your Android apps to Github?

Trust me, it’s much easier to upload your Android code to Github than to push your web app files to Github.

Here’s how in this blog, I will take you to Github publishing of your Android Code. It’s easy as it may sound very troublesome because of many directories and source files in an Android Project, but if you’re using Android Studio IDE, you shouldn't worry everything is provided on the plate there, with just a few options away, mentioned in this blog.

Quick walk through:

  1. VCS
  2. Git add
  3. Git Commit
  4. Git push

1,2,3.. PUSH!

Steps:

  1. Make a repo on Github

Github > New > Name the repo > Click Create Repository.

Like I made my repository here:

P.S you can find me on Github here ;)

2. Make an Android Project

Make a beautiful basic app/project on Android Studio. You’ll have the following interface:

3. Find VCS: In your Menu bar locate VCS (version control system), as shown:

VCS highlighted

Select VCS> Enable Version Control Integration > Select Git from the dropdown > OK

4. Open Project Directory by choosing app → Project

5. Right Click your application.

6. Select Git > Add

All your files will be added to be pushed to the repo.

7. Again select Right-click app> Git>Commit Directory. Let’s COMMIT together!

Click Commit, A popup shows up for code analysis, again click Commit.

8. Final Step → Right-click app> Git> Repository> Push

9. Now give your remote repo link by copying it from the Github repo you first made (link with .git extension).

Click Define remote> in URL Textfield enter your repo link >OK > Push.

Congratulations dev, Our Demo Android App is now on Github.

Note:

If in between following these steps, they ask you for Github login through Android Studio, don’t panic it’s just for ONCE 😣.

Follow the steps attached below:

https://stackoverflow.com/questions/64869735/cant-log-in-to-github-on-android-studio

And if the above image guide didn’t help you much, you can follow this tutorial on YouTube, here.

[ BASED ON REAL EXPERIENCE ]

Every code on Github being pushed will help you later sometimes in the future, so make sure to upload it or you’ll lose your project while switching stuff :(

📱Happy Android Learning.

--

--