How to connect existing Android Studio project to existing Github repository

Maybe it is a little bit late, but if it helps to someone here is what I do in command line:

cd <proyect folder>
git init
git remote add origin <link to repo>
git fetch origin
git checkout master

note: if there are commits on the repo it may require you to remove conflicting files

git add --all
git commit -m "<message>"
git push

Leave a Comment