I\'ve been looking at some guides on how to do this but nothing I\'ve tried is working. What I\'ve done so far:
You have origin as a remote created already, just add your stuff to the staging area using git add .
then use git commit -m 'your commit message'
to commit your changes, then the most important part, PUSH your master branch to your remote using git push origin master
.
You should read about the git workflow, here: http://git-scm.com/book/en/Getting-Started-Git-Basics, http://marklodato.github.io/visual-git-guide/index-en.html.
1 Sign up and create a GitHub account in www.github.com.
2 Create the repository to add project
3 In Android studio Go to VCS =>Enable the version control
Now the whole project will be red
4 Go to terminal
5 Type command 'git status' to check the project files status, now it show all files need to commit
6 'git add .' to add all files to current push
7 'git commit -m"your message for push"' Message for the push
8 Set remote for the push VCS=>Git=>Remotes (Where to push )
9 'git pull' to get latest code from server, for now skip this
10 'git push --set-upstream origin master' command to push
11 Add your credentials in authentication
Now your project is successfully uploaded to GitHub