android studio git怎么提交代码

如题所述

1、首先通过git --bare init 在服务端创建好了一个git仓库;假设git仓库在服务端的地址为:/user/lyh/project/test.git

2、androidstudio上点击VCS --- import into version control --- create git repository ;如下图:

3、选择一个要提交到远程仓库的文件夹,点击OK:

4、右键要提交的项目,如下图操作:

5、打开弹出后选择commit and push,如下图:

6、在弹窗中填写远程仓库的地址,点击提交,即可

温馨提示:答案为网友推荐,仅供参考
第1个回答  2017-10-28
菜单 VCS-->git--push
相似回答