• Shopping Cart Shopping Cart
    0Shopping Cart
London App Developer
  • Courses
  • Consulting
  • Tutorials
  • About
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu
Github and Android Studio software logos on a yellow background image
Android, Android Studio, Git

How to use GitHub with Android Studio

This article provides a basic overview of how to use GitHub with Android Studio. 

Video Demonstration

Firstly, let’s login to github.com and create a new repository. From the top right corner of the screen, click the + sign and select New repository.

GitHub "New repository" option

Now complete the form to create a new repository called testproject. Leave the Initialize this repository with a README unticked.

GitHub create new repository form

Next, open Android Studio and create a new project. Call your new application TestProject. Click Next to continue.

Android Studio new project window

Leave the next page as default and click Next.

Android Studio "Select the form factors your app will run on" screen

On the Add an activity to Mobile screen select Blank Activity and click Next.

Android Studio "Add an activity to Mobile" screen

In the next screen, leave the default activity name of MyActivity and click Finish.

Android Studio "New file options" screen

Your new project will open in Android Studio. On the top menu, select VCS > Import into Version Control > Create Git Repository.

Android Studio "Create Git Repository" option.

On the next screen, leave it all as default and click OK.

Android Studio "Select directory for git init" screen

Now use Windows Explorer and navigate to the root of your projects folder. Right click and select Git Bash (If you do not see this option, then first install Git for Windows).

When the Git bash screen appears, type:

git remote add origin https://github.com/[username]/[project_name].git

An example of a Git repository URL is: https://github.com/markwint/testproject.git

Entering command into Git Bash

Then press enter. The GitHub remote will be added to your Git repository.

Next, jump back into Android Studio, right click your projects root directory and select Git > Add. This will add all your project files to your Git repository.

Android Studio "Git > Add" option

It will seem like nothing has happened, but trust me, the project files are added.

Now right click the project name again and this time select Git > Commit Directory.

Android Studio "Commit Directory" option

In the next screen, type a Commit Message and select Commit.

Android Studio "Commit Changes" option

If a Code Analysis warning appears, click Commit. (Unless it’s a real project, in which case review and fix the issue before committing!)

Android Studio "Code Analysis" warning

Now, right click the project name, select Git > Repository > Push.

Android Studio "Git Push" option

Check the box Push current branch to alternative branch and leave the branch name as master. Then select push.

Android Studio "Git Push" prompt

Now enter your GitHub Login (email address) and Password. Then click OK.

Android Studio GitHub Remote Login

If it’s all good, you will see this message.

Android Studio Successful Git Push

Now your code is pushed to your GitHub repository. Don’t believe me? Logon and check for yourself.

GitHub repository pushed from Android Studio

And that’s it! I hope you found this post helpful? Let me know in the comments below.

Cheers,
Mark

Share this entry
  • Share on Facebook
  • Share on X
  • Share on WhatsApp
  • Share on Pinterest
  • Share on LinkedIn
  • Share on Tumblr
  • Share on Vk
  • Share on Reddit
  • Share by Mail
https://i0.wp.com/londonappdeveloper.com/wp-content/uploads/2015/01/How-to-use-GitHub-with-Android-Studio-1x.png?fit=277%2C223&ssl=1 223 277 mark https://londonappdeveloper.com/wp-content/uploads/2018/12/lon_website_logo-300x110.png mark2014-08-14 19:58:162022-01-12 10:28:52How to use GitHub with Android Studio
125 replies
  1. Messerli Vinzenz
    Messerli Vinzenz says:
    September 30, 2014 at 8:22 am

    Thank you for sharing this, it really helped me!

    Reply
    • mark
      mark says:
      September 30, 2014 at 6:40 pm

      Great, I’m glad you found it useful. How are you finding working with Android Studio so far?

      Reply
      • Vipul
        Vipul says:
        January 20, 2018 at 11:05 am

        Android Studio is really horrible to work with. Eclipse was the way we were doing Android, but they deliberately broke Eclipse.

        Reply
        • Adam
          Adam says:
          May 29, 2018 at 8:29 pm

          bro you responded 4 years later and if you have a decent computer android studio is definitively better than eclipse. especially in 2018. no clue what you’re going on about

          Reply
      • Suhanshu
        Suhanshu says:
        February 19, 2018 at 10:25 pm

        I’m doing same but suddenly it asks for ssh key and then when i type passphrase it shows “failed”
        Please help me !!

        Reply
  2. Prashant Pandey
    Prashant Pandey says:
    October 14, 2014 at 5:55 pm

    thank you sir

    Reply
    • mark
      mark says:
      June 24, 2016 at 3:37 pm

      You’re welcome, thanks for reading!

      Reply
  3. Noman
    Noman says:
    October 28, 2014 at 10:06 am

    Thank you.. it works

    Reply
    • mark
      mark says:
      November 5, 2014 at 2:48 pm

      Glad you found it useful!

      Reply
  4. amd
    amd says:
    November 25, 2014 at 11:34 am

    I may have entered a wrong password, it says “Push Rejected”. The enter password popup is not showing again. How can I re-enter my password?

    Reply
    • mark
      mark says:
      December 8, 2014 at 5:08 pm

      Hi amd. Did you try to close Android Studio and re-open? This comment is a bit old so did you figure the solution already? If not, let me know.

      Reply
  5. Wrolf
    Wrolf says:
    December 7, 2014 at 5:47 pm

    Thank you. Just what I needed.

    Reply
    • mark
      mark says:
      December 8, 2014 at 5:07 pm

      That’s brilliant, glad you found it helpful 🙂

      Reply
  6. Piotrek
    Piotrek says:
    December 30, 2014 at 8:36 am

    Excellent article – thank you very much!

    Reply
    • mark
      mark says:
      June 24, 2016 at 3:37 pm

      Happy you found it useful, thank you for reading!

      Reply
  7. Zeeshan
    Zeeshan says:
    January 3, 2015 at 12:20 pm

    Thank you so much.. it works!

    Reply
    • mark
      mark says:
      June 24, 2016 at 3:37 pm

      Excellent!

      Reply
  8. Jess
    Jess says:
    January 5, 2015 at 1:04 am

    I’m trying to do this with my own project and it keeps giving me “Push rejected: master: rejected”. Any idea why?

    Reply
    • Saniya
      Saniya says:
      March 5, 2016 at 5:59 am

      How did you fix this? I cant seem to get around this issue, even after restarting and setting up everything from scratch!

      Reply
      • Mark
        Mark says:
        July 9, 2016 at 1:58 am

        Having the same issue with push rejection and not sure how to proceed. Any suggestions? Thanks.

        Reply
  9. LuditeTechnologies
    LuditeTechnologies says:
    January 15, 2015 at 2:15 pm

    Nicely done. I had serious issues with rejections when I was trying from my home but I tried this tutorial again from my office with a different project and it worked flawlessly.

    I have one question: My final layout ( the project tree structure, I mean ) looks slightly different from your screenshot at the end. Does that matter at all?

    Reply
    • mark
      mark says:
      January 15, 2015 at 2:26 pm

      Glad it helped you. Not sure regarding the layout, can you send a screenshot to my email: mark (at) winterbottom.me…

      Reply
  10. Prashant Patil
    Prashant Patil says:
    February 2, 2015 at 7:03 am

    Thanks sir,
    Very helpful tutorial…

    Reply
  11. Nilesh
    Nilesh says:
    February 10, 2015 at 7:09 am

    Very good tutorial with screenshots, I was stuck on “Nothing to push” message while pushing to github, you advice to Check the box Push current branch to alternative branch before pushing helped me a lot.

    Thanks again.

    Reply
  12. Luca LS
    Luca LS says:
    March 5, 2015 at 2:45 pm

    Why do you have green Windows ?

    Reply
    • mark
      mark says:
      March 8, 2015 at 1:00 pm

      I like green windows 🙂

      Reply
  13. Diego
    Diego says:
    March 7, 2015 at 1:13 pm

    Thanks, good work

    Reply
  14. Saifur Rahman Mohsin
    Saifur Rahman Mohsin says:
    May 14, 2015 at 11:56 am

    Great article. I have a query, I wonder if you are aware of the answer to this. In the Android Studio “Commit Changes” option image in this blog the author field is empty, clicking on the dropdown shows my name and I select it every commit. Is there a way to set my name as default so that it automatically fills in when I goto VCS -> Commit Changes?

    Reply
  15. listovivek
    listovivek says:
    May 20, 2015 at 3:04 pm

    It’s really good.

    Reply
  16. Shirin
    Shirin says:
    June 28, 2015 at 10:07 am

    Perfect 😉

    Reply
  17. goodlifechris
    goodlifechris says:
    August 21, 2015 at 10:15 am

    that was awesome …point of correction not internet explorer its window explorer.Great job again and again now about to google on how to check out through git hub

    Reply
    • mark
      mark says:
      August 22, 2015 at 8:01 am

      Thanks man, I’ve fixed it now 🙂 (No one want’s to use Internet Explorer for anything haha)

      Reply
  18. Dorothea Chung
    Dorothea Chung says:
    August 26, 2015 at 12:34 pm

    It was sooooo helpful. Thank you!

    Reply
  19. Chintan Rathod
    Chintan Rathod says:
    September 2, 2015 at 3:42 am

    Its really nice tutorial. It helped me a lot. Thanks for sharing. 🙂

    Reply
    • mark
      mark says:
      September 2, 2015 at 7:51 am

      Thanks!

      Reply
  20. reshma
    reshma says:
    September 3, 2015 at 4:53 am

    Thank you. That was a perfect set of instructions and job done easy.

    Reply
  21. Tuhin Das
    Tuhin Das says:
    September 26, 2015 at 6:35 pm

    Android Studio keeps on saying “Push to origin/master Rejected” I have no idea why and I have to submit some Android code soon.. to a tutorial.. please help

    Reply
    • mark
      mark says:
      September 27, 2015 at 3:28 pm

      Try and do pull first and then push?

      Reply
  22. Luís Cruz
    Luís Cruz says:
    October 1, 2015 at 2:10 am

    Thanks for the tutorial, really helped me.

    Reply
  23. Moustafa
    Moustafa says:
    October 1, 2015 at 2:26 pm

    Hi,

    Why I don’t have that option in my Android Studio?

    “the check box Push current branch to alternative branch”

    Thank you.

    Reply
  24. pritam tirpude
    pritam tirpude says:
    October 12, 2015 at 2:01 pm

    It’s helpful to me Thank You Mark

    Reply
  25. Katelynn
    Katelynn says:
    October 23, 2015 at 5:59 pm

    Thanks so much> This was very helpful!

    Reply
    • Rajesh
      Rajesh says:
      November 5, 2015 at 6:53 am

      Thank you so mach it’l very useful. i have one doubt how to create new branch and update project in my new branch via android studio.

      Reply
      • mark
        mark says:
        June 24, 2016 at 3:38 pm

        Hi Rajesh. Did you figure it out in the end?

        Reply
  26. harin kaklotar
    harin kaklotar says:
    November 3, 2015 at 5:46 am

    I got error when I push
    Failed with error: fatal: unable to access ‘https://github.com/Harin-Kaklotar/MyProject.git/’: Failed to connect to 127.0.0.1 port 8087: Connection refused

    Reply
    • mark
      mark says:
      June 24, 2016 at 3:39 pm

      Hi Harin. That is strange. It looks like github.com is resolving to 127.0.0.1 for you. In command prompt can you try and ping github.com and see what IP address it resolves?

      Reply
  27. Shilpa
    Shilpa says:
    November 6, 2015 at 12:19 am

    Hi

    I tried the steps you mentioned above and they were really helpful. I am facing a problem with Github 2 factor authentication, which does not allow me to login through android studio. Any idea how to resolve this ?

    Thanks

    Reply
    • mark
      mark says:
      June 24, 2016 at 4:11 pm

      Hi Shilpa. Great question. I just enabled Two Factor auth to test this myself. You are correct, Android Studio does not support GitHub Two Factor authentication. You can get round this pretty easily by using the GitHub private key authentication to clone your repository, and then open the repository in Android Studio.

      Let me know if this works for you or if you need more details.

      Reply
  28. Omar kwydi
    Omar kwydi says:
    December 19, 2015 at 8:24 pm

    when I run my application by Android Virtual Devices (AVDs)
    I have problem

    there are Error message ” this AVD’s Configuration is Missing a kernal File ”

    I am waiting the Replying from Your And thank you on your Subject

    Reply
    • mark
      mark says:
      June 24, 2016 at 4:15 pm

      Hi Omar. That sounds like a problem with your Android Studio or Android SDK installation.

      I would need more details to figure out exactly what the issue is. My suggestion would be to re-install Android Studio and the Android SDK completely.

      Reply
  29. Sayom
    Sayom says:
    January 9, 2016 at 3:40 pm

    Hello Mark,
    Thanks for the post. I have been able to create the GitHub repository for the project present in the Andriod studio located in my local machine. Your blog is wonderful. I have one query into it. I would be requiring the outputs folder content to be pushed into the GitHub as well, so can you let me know how to do it, as when I push the code currently, the output folder is not going into the Github.

    Reply
    • mark
      mark says:
      January 19, 2016 at 6:10 pm

      Hi Sayom, thanks for the comment and kind words about my blog. Did you try going to ‘VCS > Git > Add’ and ensuring the ‘output’ folder is added? If it doesn’t work, open your .gitignore folder and check that ‘outputs’ isn’t added to .gitignore.

      Reply
      • vsnarayana
        vsnarayana says:
        November 14, 2016 at 2:08 pm

        Hi Mark,
        thanks for the nice tutorial. It makes my work more easy

        Reply
  30. Meenohara
    Meenohara says:
    January 19, 2016 at 10:24 am

    It was really helpful, thank you so much!

    Reply
    • mark
      mark says:
      January 19, 2016 at 6:03 pm

      Happy to be of help!

      Reply
  31. somuchandra
    somuchandra says:
    March 9, 2016 at 9:16 am

    It was really helpful,That was a perfect set of instructions and job done easy.
    Thank you

    Reply
    • mark
      mark says:
      June 24, 2016 at 4:25 pm

      Thanks for the feedback. Glad to be of service 🙂

      Reply
  32. Nandha
    Nandha says:
    March 14, 2016 at 12:20 pm

    After following all your steps Push commits shows that ‘master -> Empty repository’. Will you help in this, i am using Android Studio 1.5.1

    Reply
    • mark
      mark says:
      June 24, 2016 at 4:39 pm

      Hi Nandha, are you still having this issue? Sounds like the files are not added before you commit?

      Reply
  33. Piotrek
    Piotrek says:
    March 14, 2016 at 10:12 pm

    Push Rejected like quite few other people here.

    Reply
    • Piotrek
      Piotrek says:
      March 14, 2016 at 10:37 pm

      I had to rename branch from master to master2 and it worked

      Reply
  34. Patrik
    Patrik says:
    April 4, 2016 at 12:57 pm

    Nice! Works with AndroidStudio 2.0 as well!!
    Only differenc is if you want to commit to different branch, leave the checkmark emty. It is has the oposit meaning in android 2.0.

    Thank You! I have no experience with eather Android studio or Git started googleing and found your tutorial fiirst thing probably saved me a couple of DAYS!! 😀 😀

    Reply
    • mark
      mark says:
      June 24, 2016 at 4:41 pm

      Hi Patrik, happy that you found it useful! Thanks for reading.

      Reply
  35. someone
    someone says:
    May 2, 2016 at 2:46 am

    Thank you so much! It works.
    The only problem is that my Github account has 2-step verification, so I encountered some trouble, fortunately I solved it.

    Reply
  36. sam
    sam says:
    May 3, 2016 at 1:15 pm

    whenever i am writing in the shell program it says fatal:not a git repository

    Reply
    • mark
      mark says:
      June 24, 2016 at 4:42 pm

      Hi Sam, it sounds like the git repository hasn’t been initialized? Did you click “Create Git Repository”?

      Reply
  37. David
    David says:
    May 11, 2016 at 9:34 pm

    Nice video! is there a follow-up to it? maybe something explaining how a different user then checks out the repository?

    Reply
    • mark
      mark says:
      June 24, 2016 at 4:42 pm

      Hi David, actually we are working on a follow up right now 🙂

      Reply
  38. Raman Rajagopal
    Raman Rajagopal says:
    June 15, 2016 at 3:56 am

    Thanks !! Made my life easier.

    Reply
    • mark
      mark says:
      June 23, 2016 at 4:08 pm

      Thanks Raman 🙂

      Reply
  39. Abish R
    Abish R says:
    June 21, 2016 at 12:34 pm

    Thanks. Very good guide

    Reply
    • mark
      mark says:
      June 23, 2016 at 4:07 pm

      Thanks Abish 🙂

      Reply
  40. Vijay Aravinth
    Vijay Aravinth says:
    July 7, 2016 at 10:59 am

    Thank you sir , it’s really helpful tutorial sir.

    Reply
    • mark
      mark says:
      July 7, 2016 at 2:36 pm

      You’re welcome!

      Reply
  41. Ranvir
    Ranvir says:
    August 19, 2016 at 2:42 am

    That was awesome …point of correction not internet explorer its window explorer.Great job again and again now about to google on how to check out through git hub.It is useful information that i need this..
    Thanks for sharing this information to all……

    Reply
  42. Paul
    Paul says:
    September 27, 2016 at 12:52 pm

    oh my god ,such a good tutorial,though I have config more than you mentioned but anyway it worked ,thank u so much ,sir

    Reply
  43. m
    m says:
    October 19, 2016 at 11:39 pm

    thats not the default, its where ever you were last, so i add drawable. change the instructions to ensure pointing to the right place

    Reply
  44. Nitin
    Nitin says:
    November 7, 2016 at 5:31 am

    Thanks a lot mark, a great direction for the newbi user of android studio who want to switch from eclipse.

    Thanks once again

    Reply
  45. Ben
    Ben says:
    November 9, 2016 at 3:44 pm

    Seemed to be working fine but on the final step (pushing the files) I get an error message that says:

    Push failed: Failed with error: fatal: repository ‘https://github.com/silverben10/henrysmith.git/’ not found

    Please would you be able to help?

    Reply
    • mark
      mark says:
      November 10, 2016 at 8:34 am

      Hi Ben, thanks for the comment. Can you try removing the trailing slash from the end?

      Reply
  46. Steve Mann
    Steve Mann says:
    December 12, 2016 at 10:18 pm

    thanks man. was helpful

    Reply
  47. Edwin
    Edwin says:
    December 14, 2016 at 2:12 am

    Thank you! Super helpful 🙂

    Reply
  48. Aadarsha Shrestha
    Aadarsha Shrestha says:
    January 3, 2017 at 5:24 pm

    Thanks for the post. It was great. (Cheers)

    Reply
  49. vishal
    vishal says:
    January 27, 2017 at 9:43 am

    i am getting error of this type
    dheerendra@DHEERU MINGW64 ~
    $ git remote add origin https://github.com/lobheshdhakar/Ki.git
    fatal: Not a git repository (or any of the parent directories): .git

    Reply
    • mark
      mark says:
      January 31, 2017 at 9:11 am

      Sounds like maybe you need to initialise the project as a Git repo within the VCS menu at the top of Android Studio?

      Reply
  50. SeenuNani
    SeenuNani says:
    January 28, 2017 at 5:23 am

    Thanks,It’s very helpfull

    Reply
  51. pritz
    pritz says:
    February 10, 2017 at 9:11 am

    Man ,can you tell me how to use git from two android studio to work on a same project and make changes from two systems.what all steps are there for doing that.

    Reply
    • mark
      mark says:
      February 10, 2017 at 9:20 am

      Hi Pritz, assuming you already have the project on one computer, you would push to GitHub using the instructions on this post, and then on the second computer you would clone it. Then when you make a change on either one, you push the changes and then on the other machine you pull the changes. Does that make sense?

      Reply
  52. pritz
    pritz says:
    February 10, 2017 at 11:06 am

    Yeah man ,i am convinced with your answer but i want more deep information about this thing…
    As we are working on the firebase app so.. in order to fully access the codes privilege from the 2 devices(me and my team partner).. what are the things we need to set up..

    Reply
  53. Aritra
    Aritra says:
    February 12, 2017 at 8:24 am

    pushing ins’t a success cause i get the error ” Failed with error: fatal: unable to access ‘https://github.com/darkfly0010/Darknote.git/’: Unknown SSL protocol error in connection to github.com:443 ” .please help

    Reply
  54. pritz
    pritz says:
    February 17, 2017 at 5:41 am

    Do you know how how to get ssh key to gain access in github

    Reply
  55. Victoria
    Victoria says:
    February 17, 2017 at 7:21 pm

    Thanks! That was really healpgul!

    Reply
  56. Anees Ahmad
    Anees Ahmad says:
    February 23, 2017 at 3:23 am

    Great work marks. Thanks for this worthy information.

    Reply
  57. Jesse Boyd
    Jesse Boyd says:
    March 18, 2017 at 6:21 pm

    If I supply a git ignore file will that be recognized by android studio and the defined files will not be uploaded to git ?

    Reply
    • mark
      mark says:
      April 27, 2017 at 4:42 pm

      It will be recognised by Git which Android Studio will use so the answer is yes. Although note that if you have already added the files to Git before you set the .gitignore then you will need to remove them from git manually.

      Reply
  58. Mai
    Mai says:
    March 29, 2017 at 10:30 pm

    Not sure what happened, but I followed the steps and ended up having several errors in my code whereas before the code was fine.

    Reply
  59. Almostafa
    Almostafa says:
    March 31, 2017 at 11:18 pm

    Thank you so much.. it works! 🙂 🙂 🙂

    Reply
  60. Steve Roylat
    Steve Roylat says:
    April 4, 2017 at 8:56 pm

    Hey Mark, I needed to execute ‘git init’ before I could add remote add the repository to Github. I’m not sure if this is to do with the way I went about adding my project to git. It’s a pre-existing Android project, and the project name is different to that of the repository. I had to call git init just after selecting ‘Creating Git Repository’ in Android Studio.

    Reply
  61. Mahar Sheraz
    Mahar Sheraz says:
    April 7, 2017 at 7:56 am

    Thanks,good work and it helped me a lot..
    now i wanted to ask that how can we import complete project from GitHub into Android Studio with gradle build and repositries..

    Looking forward for your reply…..Thanks

    Reply
  62. vineeshvs
    vineeshvs says:
    April 13, 2017 at 4:37 pm

    excellent

    Reply
  63. sanjeev
    sanjeev says:
    April 25, 2017 at 4:49 am

    thanks for ur good work and it helped me a lot..but i am getting this error while sharing android project through different gmail account than previous one.error::”Can’t connect to repository from configured remote. You could want to check .git config.Do you want to proceed anyway?”.project is already on github

    Reply
    • mark
      mark says:
      April 27, 2017 at 4:40 pm

      Thank you for the comment. Can you link me to the git repo? Is it public?

      Reply
  64. Sushant Chaturvedi
    Sushant Chaturvedi says:
    May 3, 2017 at 11:12 am

    Thank you for sharing this, it really helped me! thanks again

    but I found this error when i was ready to push

    Push failed
    Failed with error: fatal: The remote end hung up unexpectedly
    fatal: The remote end hung up unexpectedly
    error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054

    Reply
  65. Zabar
    Zabar says:
    May 4, 2017 at 5:12 am

    Amazing tutorial, very simple and straightforward. Thank you very much!

    Reply
  66. Cara
    Cara says:
    May 27, 2017 at 10:15 am

    Thanks for the tutorial and it’s really helpful. However when I did it, my git directory cannot find all the java files. My .gitignore looks fine and there’s no .git in the java file directory. Do you happen to know what may cause this? Thanks in advance.

    Reply
  67. Sj
    Sj says:
    June 3, 2017 at 6:30 pm

    Error path not valid
    How to rectify?

    Reply
  68. rgmermaid
    rgmermaid says:
    June 12, 2017 at 12:46 pm

    Extremely helpful article, thanks!

    Reply
  69. Ram Prasad Gudiwada
    Ram Prasad Gudiwada says:
    June 21, 2017 at 2:18 am

    can not run git.exe : Create process error=2, The system cannot find the file specified
    This error is coming
    when I click on Share on GitHub

    Reply
  70. Amarnath Baitha
    Amarnath Baitha says:
    June 22, 2017 at 12:04 pm

    Its really good to learn github with android studio.Thanks Man 🙂

    Reply
  71. Sudip Bhakta
    Sudip Bhakta says:
    August 2, 2017 at 7:18 am

    Hi, Mark, this article was very helpful. Thanks for putting this effort.

    Reply
  72. AY
    AY says:
    September 1, 2017 at 11:01 am

    amazing assistance from you

    Reply
  73. 'Femi
    'Femi says:
    September 11, 2017 at 10:08 pm

    Thanks a lot for the post! This really helped me too. Much appreciated.

    Reply
  74. Rashedul Hasan
    Rashedul Hasan says:
    September 21, 2017 at 9:35 am

    Hello Mark,
    I have been using these instructions to add android studio projects to Github and worked fine. But now when I have added one project to github from one pc and then copied the files to another pc using pendrive – it was showing error when adding to github in another account(error: project already exists in git). So, i deleted the .git directory and tried to add it from the beginning. everything was successful but at the last stage when i pushed the files from android studio, it shows error: (Failed with error: fatal: unable to access ‘https://github.com/xxx/myProject.git/’: The requested URL returned error: 403). Can you give a solution?

    Reply
  75. john
    john says:
    November 14, 2017 at 2:41 am

    thanks man! very easy tutorial

    Reply
  76. Yang
    Yang says:
    December 17, 2017 at 8:24 am

    Thanks. It helped me also:)

    Reply
  77. Hayz
    Hayz says:
    April 2, 2018 at 7:14 pm

    Thank u so much. Simple and clear:)

    Reply
  78. Rajesh Samson
    Rajesh Samson says:
    April 25, 2018 at 1:36 pm

    Hi
    Thanks for this wonderful tutorial. I have a question for you in case we want to ignore the target classes or the generated classes how can we ignore them while pushing the code.

    Thanks in advance

    Reply
  79. Swati
    Swati says:
    July 22, 2018 at 4:44 pm

    Thanks a lot, it helped me.

    Reply
  80. Swati
    Swati says:
    July 22, 2018 at 4:46 pm

    Nice to see post has its pdf also .Thanks again.

    Reply
  81. Dimas
    Dimas says:
    November 14, 2018 at 10:54 am

    THANKS BRO!

    Reply
  82. Vinny
    Vinny says:
    December 13, 2018 at 8:23 pm

    Great article – easy to follow and works great. Thanks for sharing it.

    Reply
  83. Muhammmad Hasnain Haider
    Muhammmad Hasnain Haider says:
    January 23, 2023 at 9:28 am

    can we add same project to diffrent developer github repo at a same time???

    Reply

Trackbacks & Pingbacks

  1. How To Connect Android Studio To Github? The 14 Latest Answer - Ko.taphoamini.com says:
    June 30, 2022 at 5:12 am

    […] + Read More […]

    Reply
  2. Skeleton 2 | Knuckles & Palm says:
    December 11, 2016 at 11:13 pm

    […] also decided to take a minute and figure out the right way to upload projects from Android Studio to GitHub. I want that to develop into a habit that I don’t have to think about. I think I’ve […]

    Reply
  3. Android Notification Reporter – Set up a new project and link to github | Call me a Coder says:
    February 18, 2015 at 3:14 am

    […] we have enough playing. Time for something more serious. Go to http://www.londonappdeveloper.com/how-to-use-git-hub-with-android-studio/ and follow the steps bit by bit. Of course, this is assumed that you have already installed github […]

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Pages

  • About
  • Consulting
  • Home
  • Tutorials

Categories

  • AI
  • Android
  • Android Studio
  • Angular
  • Aptana Studio
  • AWS
  • Bootstrap
  • Career advice
  • Celery
  • Databases
  • Deployment
  • DevOps
  • Django
  • Django REST Framework
  • Docker
  • Eclipse
  • Getting Help
  • Git
  • Git Bash
  • Git Flow
  • GitHub Actions
  • Google App Engine
  • IDE
  • Ionic Framework
  • iOS
  • JavaScript
  • Job Search
  • Links
  • Linux
  • Mac OS X
  • macOS
  • Node.JS
  • OpenAI
  • PGAdmin
  • Postgres
  • Productivity
  • Python
  • React
  • Salt Stack
  • Stack Overflow
  • Tools
  • Travis-CI
  • Tutorials
  • Ubuntu
  • Uncategorized
  • Vagrant
  • VSCode
  • WebSockets
  • Windows 10
  • WordPress

London App Developer Ltd,

71-75 Shelton Street, Covent Garden, London, United Kingdom, WC2H 9JQ

Company registration number: 09718346

© London App Developer - London App Developer Ltd, Company Registration Number: 09718346, VAT: GB224061842
  • Link to X
  • Link to Youtube
  • Link to Facebook
  • Link to Reddit
Link to: How to push to a remote Git repository over SSH with private/public key authentication using Android Studio Link to: How to push to a remote Git repository over SSH with private/public key authentication using Android Studio How to push to a remote Git repository over SSH with private/public key authentication...Android studio and Github software logos on a bright pink background image Link to: Low cost backup solution for Linux using Dropbox and a shell script Link to: Low cost backup solution for Linux using Dropbox and a shell script Linux penguin logo in front of the dropbox logoLow cost backup solution for Linux using Dropbox and a shell script
Scroll to top Scroll to top Scroll to top

This site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.

OKLearn more

Cookie and Privacy Settings



How we use cookies

We may request cookies to be set on your device. We use cookies to let us know when you visit our websites, how you interact with us, to enrich your user experience, and to customize your relationship with our website.

Click on the different category headings to find out more. You can also change some of your preferences. Note that blocking some types of cookies may impact your experience on our websites and the services we are able to offer.

Essential Website Cookies

These cookies are strictly necessary to provide you with services available through our website and to use some of its features.

Because these cookies are strictly necessary to deliver the website, refusing them will have impact how our site functions. You always can block or delete cookies by changing your browser settings and force blocking all cookies on this website. But this will always prompt you to accept/refuse cookies when revisiting our site.

We fully respect if you want to refuse cookies but to avoid asking you again and again kindly allow us to store a cookie for that. You are free to opt out any time or opt in for other cookies to get a better experience. If you refuse cookies we will remove all set cookies in our domain.

We provide you with a list of stored cookies on your computer in our domain so you can check what we stored. Due to security reasons we are not able to show or modify cookies from other domains. You can check these in your browser security settings.

Google Analytics Cookies

These cookies collect information that is used either in aggregate form to help us understand how our website is being used or how effective our marketing campaigns are, or to help us customize our website and application for you in order to enhance your experience.

If you do not want that we track your visit to our site you can disable tracking in your browser here:

Other external services

We also use different external services like Google Webfonts, Google Maps, and external Video providers. Since these providers may collect personal data like your IP address we allow you to block them here. Please be aware that this might heavily reduce the functionality and appearance of our site. Changes will take effect once you reload the page.

Google Webfont Settings:

Google Map Settings:

Google reCaptcha Settings:

Vimeo and Youtube video embeds:

Other cookies

The following cookies are also needed - You can choose if you want to allow them:

Privacy Policy

You can read about our cookies and privacy settings in detail on our Privacy Policy Page.

Privacy Policy
Accept settingsHide notification only