How to Push an Android Studio Project to GitHub

preview_player
Показать описание
In this tutorial I'm going to show you how to share an Android Studio project on Github so that you can collaborate with other teammates on the same project and have some version control.

In this video I’m using Android Studio version 1.0.2

The first thing I'm going to do is click VCS (version control system) and then select import into version control.

Then I will choose “share project on Github” and here it comes up with the login for Github.

Type username or email address and password and choose save password for convenience.

Now click login and it's asking for a master password for the password database. This is for Android Studio to store my password locally in a secure way. (You won't receive this message if you already pushed to Github or you've stored some other credential in Android studio.)

Click encrypt to keep it safe.

Now it will ask to enter a new repository name. Enter whatever name you want, or however you want it to appear on Github. I'm going to type a description of my first Github project and click share.

Next we’re presented with the add files for initial commit screen. This is asking which files would I like to check in to my initial git commit which I can then push to Github.

Usually you would choose all the files, though there is an exception if you have some kind of local config file, password file, or keys that's stored there -- might not want to check those in.

Since this is a plain hello world project I'm going to make sure all the files are checked and leave the message as the default which is “initial commit” i.e. this is the first commit I'm making to the repository. Click ok.

Now this is going to push my project to Github. You can see it has “successfully shared project on Github”.

Go to Github and now you can see that the project is there and it has been successfully pushed.

So that is how to push an Android studio project to Github.

Thanks for watching!

Рекомендации по теме
Комментарии
Автор

After 4 years still usefull. Thank you

matze
Автор

Holy Crap! I've been searching for a simple tutorial to upload my projects to no avail.. until now. Thanks!

rudyacevedo
Автор

kinggg - u explain it so simple
before ur vide0, i was tryna copy the url and do some complex cloning

thanks alot!

tadassatafarra
Автор

Thanks bro finally i found your video and now i can easly push my projects to GitHub

vigenhambardzumyan
Автор

Thx i have wasted my whole day for this thing but after watching your video i have done it in 2 min

viramshah
Автор

Thank you for the straight to the point video. It was really helpful and worked just as you described. I am now a follower and recommend this channel to everyone.

staggertees
Автор

Who's watching this in Android Studio 4.0.0+

TheBest-spco
Автор

i am using githb desktop cant add its path to studio

babbintandukar
Автор

I'm trying to push my entire project to GitHub, but it only pushes some of the files.

Oshyrath
Автор

Hello,
i want to commit and push my code and git is adding some more files with it from my previous project also.now
please tell me what to do? How to commit only new files of new project.

teamuical
Автор

Could you explain why we need to push all the files ? thanks

Автор

Android Studio Project says project is already on GitHub despite the fact I deleted repository. stack overflow didn't help either

travelfordonuts
Автор

Can't start Git: /usr/bin/git
Probably the path to Git executable is not valid.

CodySmiley
Автор

Hey I am getting some issues and need my Android studio project to be done in 3 days to submit to my school.
I know it's kinda tough but it would be great if you help me up.

rupampal
Автор

When I'm trying to push it shows push rejected and also shows a hint to pull before push. what should i do? Please help me with this..

jhansiravipati
Автор

Thank you for this video, very helpful

onlywangkk
Автор

What do I do if I want to update this repository? I try to share my project in the same way but it doesnt allow me to use the same respository :(

iGadgetzz
Автор

when i want to push my project to gitHub according to your video it shows error "Cannot run program "git.exe": CreateProcess error=2, The system cannot find the file specified" . How to solve this problem ?

manojbudhaayer
Автор

thank you for your video, it is very helpful for me

saeedadami
Автор

Do we need to install Github on our system for this?

sauryapaudelfr