First of all create repository in your git account
than copy repository link and run below command
git clone your repository link
than open Android Studio and browse your project
than run below command in terminal
git add --all
git commit -m 'Message'
if your are first time push your code
git push origin master
if you push second time
git pull origin master
git push origin master
than copy repository link and run below command
git clone your repository link
than open Android Studio and browse your project
than run below command in terminal
git add --all
git commit -m 'Message'
if your are first time push your code
git push origin master
if you push second time
git pull origin master
git push origin master