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

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

androidstudio上传代码到git上

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

androidstudio上传代码到git上

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

androidstudio上传代码到git上

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

androidstudio上传代码到git上

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

相关文章:

  • 2021-07-26
  • 2021-07-27
  • 2022-12-23
猜你喜欢
  • 2021-11-10
  • 2021-04-24
  • 2021-10-22
  • 2021-06-01
  • 2021-07-11
相关资源
相似解决方案