I am trying to push android project to private empty repo with android studio . But I cannot find simple solution. How can I do this ?
To push an android studio project to an empty git, follow these:
cd
command and enter below commands.git init
git status
-> This would output you list of files in red color.git add .
-> Adds all the files to local version control.git commit -m "Some Commit Message"
git remote add origin repository_url.git
Example: git remote add origin https://github.com/ramakrishnajoshi/JetpackNavigationComponent.git
git push --set-upstream origin master
-> A new branch is created with name master
and all the code will be pushed to this branch.After all this, you will get a message similar to Branch master set up to track remote branch master from origin