一:安装git
https://www.cnblogs.com/cxj1821/p/12067445.html
二:码云上创建同名项目
三:在AS上创建本地git本地仓库
选择项目根目录
四:提交项目到仓库
上一步若失败执行以下步骤即可:
vcs -> git ->rebase ->(onto 选择refs/heads/master) ->rebase
termina中执行git pull origin master --allow-unrelated-histories
点击底部的versionControl,对有问题的文件,revert。
选中项目->右键->git->repository->push
针对上传Push rejected终极解决办法:安装gitee插件

restart IDE,重启AS