Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+10 votes

I created my app on Android Studios on my Mac. I then created a private repository in GitHub where I would like to put this app. Any suggestions on the best way to do this?

asked in CSC490_Spring2019 by (8 points)
0

I've had the same problem with my individual project and the Maze game. It turns out in Android Studio you can set the project folder you work on as a github folder link it with a repo. New things i've leaned

4 Answers

+4 votes

Open up a terminal or something that can run git commands and cd into the project directory. Connect your email/github username if you haven't, copy the link to your repository, and run these commands:

git init.
git add .
git commit -m "message here"
git remote add origin
git push origin master

This creates a repository on your machine and links it to your github repository. Then pushes all your files onto it.You can verify it worked by refreshing github, or with the command:
git remote -v

answered by (8 points)
+1

There is a terminal built in already at the bottom of android studio which is how I did this!

+3 votes

You can also create the repo on the web, clone it onto your local machine, copy files into the repo on your local machine (with the file manager), add, commit, push. I did this on windows, don't know how apple products work IMO.

answered by (8 points)
+3 votes

I used this online tutorial which helped me. https://mobikul.com/android-studio-github-integration/

answered by (8 points)
+1 vote

https://kbroman.org/github_tutorial/pages/init.html
I think this is a pretty good tutorial for making a repository

answered by (8 points)
...