How do I add my project from Android Studio to my GitHub page?

前端 未结 2 1989
南笙
南笙 2021-01-15 02:32

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:

  • Downloaded git for windows
  • enabled ve
相关标签:
2条回答
  • 2021-01-15 03:12

    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.

    0 讨论(0)
  • 2021-01-15 03:21

    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

    0 讨论(0)
提交回复
热议问题