Android_将本地项目上传到Github


转载请标明出处 :http://blog.csdn.net/sh_12345/article/details/53160814

第一步:在https://github.com/上注册账号,然后新建仓库,


点击 New repository

Android_将本地项目上传到Github_第1张图片

填写仓库的信息

Android_将本地项目上传到Github_第2张图片

最后点击 Create reposotory 完成创建仓库

第二步:我这是android studio 2.1.2版本,在android studio-->VCS------->Enable Version Control Integration选择

Android_将本地项目上传到Github_第3张图片


然后 出现配置版本控制的对话框,选择git就好了。

Android_将本地项目上传到Github_第4张图片

配置成功后,出现项目右键出现Git选项,窗体上方有Pull,Push 等图标,Module 中的文件都变成了红色。

Android_将本地项目上传到Github_第5张图片


第三步 本地项目上传到github

将项目添加到Git中-----将项目视图设为Project , 对着整个项目, 右键--git,有一个加号

Android_将本地项目上传到Github_第6张图片


提交文件----对着整个项目, 右键--git--Commit Directory

Android_将本地项目上传到Github_第7张图片


提交文件----添加提交信息,选择commit  and Push

Android_将本地项目上传到Github_第8张图片


提交文件----commit--push之后会进入push界面,因为是第一次提交,所以要填写远程Git的地址

 Android_将本地项目上传到Github_第9张图片

远程git地址就是你新建仓库时的地址如我这是 https://github.com/你的github/你的项目名字.git



你可能感兴趣的:(Android_将本地项目上传到Github)