android 使用 git 进行版本控制
- 远程建立仓库
- vcs --> import into version control --> create git respository
- 选中整个工程(project 页面) vcs --> git -> add
- vcs --> git --> remote 配置远程仓库
- vcs --> update project --> merge --> ok
- vcs --> git --> commit
- 在项目目录下打开 git bash,输入 git pull origin master -–allow-unrelated-histories
- vcs --> git --> push
参考: https://www.jianshu.com/p/059ed1e01229 https://blog.csdn.net/qq_30389893/article/details/90600250