AndroidStudio中如何搭建码云

第一步:注册码云和基础信息设置

码云官网:https://gitee.com/

1、注册码云,按照流程来,这里不做说明了

技术图片

 

 

 2、进入个人主页

技术图片

 

 

 

3、点击个人设置

技术图片

 

4、设置邮箱

技术图片

 

 

 

 

第二步:下载git软件

下载地址:https://www.git-scm.com/download/

1、安装git软件

然后一路next就可以了

2、点击git bash启动程序

技术图片

 

 

 3、设置用户名和邮箱【注意不要输入昵称】

git config --global user.name  "username"  
git config --global user.email  "email"

 

4、查看用户名和邮箱是否配置成功‘

git config --global user.name 
git config --global user.email

 

第三步:AndroidStudio配置git

1、File——-Setting——–搜索git

技术图片

 

 2、搜索git——选择git——选择省略号

技术图片

 

 

 

 

 3、选择git安装目录下的exe文件

技术图片

 

 

 4、点击test,查看是否配置成功,成功会提醒一个有success的弹出框

技术图片

 

 

 

第四步:AndroidStudio安装码云插件

1、File——-Setting——–搜索plugins

技术图片

 2、搜索plugins——选择marketplace——搜索gitee—点击install

技术图片

 

 

  2、查看是否安装成功

技术图片

 

 

 第五步:将项目托管到码云上

1、选择VCS—–import into Version Control ——-Share Project on Gitee

技术图片

 

2、创建仓库

技术图片

 

 

 3、创建成功提示

技术图片

 

 

 第六步:AndroidStudio下载码云项目

1、File——New———Project from Version Control——git

技术图片

 

2、填写下载项目的Url、文件下载后的存放路径和登录码云

技术图片

 

 

 3、登录

技术图片

 

 

 

 第六步:AndroidStudio更新码云项目

1、VCS——Git——–Commjt File

技术图片

 2、选择变更的文件

技术图片

 

3、部署到git上:VCS–Git—Push

技术图片