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

前端 未结 2 1990
南笙
南笙 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: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

提交回复
热议问题