PS. 参考 error: failed to push some refs to如何解决
-
本地新建一个文件夹,右击,选择git bash here
-
$ git init
-
$ git remote add orgin https://gitee.com/xxxx/xxxx.git
(远程http地址) -
$ git pull orgin master
(上条命令是将远程仓库里的文件拉取到刚刚新建的文件夹中!!!)
-
把新增代码加到该文件夹中
-
$ git add .
-
$ git config core.autocrlf
-
$ git config --global core.autocrlf
-
$ git commit -m ‘xxxxx’
-
$ git push orgin master
上传成功!!