How to push Android Project to existing private empty repository in github with Android Studio?

后端 未结 3 498
我寻月下人不归
我寻月下人不归 2021-02-05 16:00

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 ?

3条回答
  •  不要未来只要你来
    2021-02-05 16:50

    Github helpfully provides a guide for adding an existing code base into a repository which already exists, here. Whilst not specific to android studio, it will allow you to use whatever normal commit method you use.

    In a nutshell:

    • navigate to your code repository
    • run the command git init
    • add the files to commit with git add .
    • commit the changes : git commit -m "your commit message"
    • add the remote origin : git remote add origin your@git:repo/name
    • verify the remote URL git remote -v
    • push the changes git push origin master

提交回复
热议问题