1.配置git

安装好git后启动Androidstudio,打开如下路径File->Settings->Version Control(展开)->git
AndroidStudio项目提交到github

2.配置github

File->Settings->Version Control(展开)->GitHub
Host:github.com
Login:你的github账户名
Password:你的github账户密码
填完之后点击test按钮,如果出现如下对话框说明配置成功
AndroidStudio项目提交到github

3.上传工程

打开上传的工程,顶部菜单选择VCS->Import into Version Control->Share Project on GitHub
AndroidStudio项目提交到github
填写仓库名称
AndroidStudio项目提交到github
然后选择下上传的文件就可以了,建议还是配置下android studio下的terminal,用命令行操作还是比较方便。

参考: https://www.cnblogs.com/shiwei-bai/p/4991132.html

相关文章: