前言
之所以写这篇文章是为了自己做备忘录用的,同时希望也能帮助到一些初学者。
第一步:git创建仓库




第二步:选择版本控制工具
在android studio-->VCS------->Enable Version Control Integration选择

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

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

第三步:本地项目上传到git
1.将项目添加到Git中-----将项目视图设为Project , 对着整个项目, 右键--git,有一个加号

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

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

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

好了,这样就完成了本地项目到远程Git上的上传,这个时候,去Git服务器端查看,已经能看到提交上去的文件,和提交目录了
网友评论