liujjun 发表于 2018-1-14 15:40:25

androidstudio上传代码到git上

  1、首先通过git --bare init 在服务端创建好了一个git仓库;假设git仓库在服务端的地址为:/user/lyh/project/test.git
  2、androidstudio上点击VCS --- import into version control --- create git repository ;如下图:
https://images2015.cnblogs.com/blog/731956/201703/731956-20170312231406529-1778180334.png
  3、选择一个要提交到远程仓库的文件夹,点击OK:
https://images2015.cnblogs.com/blog/731956/201703/731956-20170312231310139-724649516.png
  4、右键要提交的项目,如下图操作:
https://images2015.cnblogs.com/blog/731956/201703/731956-20170312231612701-307078261.png
  5、打开弹出后选择commit and push,如下图:
https://images2015.cnblogs.com/blog/731956/201703/731956-20170312231723295-232499311.png
  6、在弹窗中填写远程仓库的地址,点击提交,即可
页: [1]
查看完整版本: androidstudio上传代码到git上