Android Studio 使用Coding.net
1.AS配置git
下载git,安装时,记好安装路径,在AS的file--settings--Version Control--选择git.如下:

把git路径复制到里面,点击右边Test,出现如下,表示配置成功。

点击ok,确定ok,好,完成了。
2.在工程文件下创建git仓库。
点击vcs,操作如图:
![(E~7ZH5SR1FG(}C]}4$}5_5.png](https://img.haomeiwen.com/i2326838/16b57a8d2a634fe3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
点击了enable version control integretion ,选择git,

现在查看项目的工程目录,出现了.git文件夹。
![FSU]1QN{2JF4]R{5$JMBJE6.png](https://img.haomeiwen.com/i2326838/ed70e59317175912.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

3.将项目和远程仓库连接。
右键项目文件夹,用git bash here打开。出现如下图:

在里面输入:git remote add name url,先 别急,这里的name要换成的工程文件夹的名字,url在coding.net里面。下面是coding.net的url.在你注册coding.net后,新建一个项目,如下图:
![K7C6G{]%N)5DDW)ZGVF_A.png](https://img.haomeiwen.com/i2326838/1ad361df22b0a1bb.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
创建项目后是如下界面,点击左边一栏的代码,便会出现访问仓库的网址,图中蓝色部分。

此时在git bash 输入完整的 git remote add name url,如下图:

关掉之后,就是AS的操作了
4.将项目上传到远程仓库。
将AS视图切换成project视图,右键工程--git--repositoty--pull,操作如图:

如果前面操作没问题的话,会出现如下界面:

点击右边的刷新,选中MyApplication/master,然后选择pull。
注意第一次要先pull,才能push.
下面就是上传了。右键工程--git--add,此时就把项目加到本地仓库。

最后就是commit changges 了,点击vcs,如下图:

此时会出现如下界面:

填写(commit message)提交信息,点击commit and push (commit 箭头点开),会出现如下界面:

点击push,就大功告成了。此时查看,coding.net项目管理,刷新一下界面就会发现项目都上去了。如下:

5.最后就是远程仓库发生改变,把改变的更新到当前项目中。
我在coding.net里面添加注释“//vvvvv”,如下图:


远程代码改变了,在AS上,进行如下操作:


此时就会发现,已经同步到本地代码:

6.至于一些概念,原理,什么的,我尚不明白,只知其然而不知其所以然。但当下问题算是解决了,日后在使用的过程中再慢慢摸索。