简体   繁体   English

如何将我的 android 工作室项目上传到 github

[英]How do I upload my android studio project to github

I am a newbie on github and am not familiar with it's ins and outs我是 github 的新手,不熟悉它的来龙去脉

I know how to locally create a repository on github,but I have no idea about converting my android studio project to a github repository我知道如何在 github 上本地创建存储库,但我不知道如何将我的 android 工作室项目转换为 github 存储库

Screenshot of my project:- Image1我的项目截图:- Image1

Follow these steps:按着这些次序:

1- create a Github repository 1- 创建一个 Github 存储库

2- open terminal in the project location 2- 在项目位置打开终端

3- git init 3- git init

4- git remote add origin <url of created repository> 4- git remote add origin <url of created repository>

5- dit add. 5- dit add.

6- git commit -m 'initial commit' 6- git commit -m 'initial commit'

7- git push origin master 7- git push origin master

you will see your project in the Github repo you just created.您将在刚刚创建的 Github 存储库中看到您的项目。

Note You may need to set your credentials for the Github on your local git and create .gitignore file.注意您可能需要在本地 git 上设置 Github 的凭据并创建.gitignore文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM