1.将本地git仓库上传到远端仓库
2.git remote add origin https://coding.net/yourusername/projectname.git
fatal: remote origin already exists解决办法:
1、先输入$ git remote rm origin
2、再输入$ git remote add origin git@github.com:djqiang/gitdemo.git 就不会报错了!
3、如果输入$ git remote rm origin 还是报错的话,找到你的github的安装路径
4、找到一个名为gitconfig的文件,打开它把里面的[remote "origin"]那一行
删掉就好了!
unable to rewind rpc post data - try increasing http.postBuffer解决办法:
git config --global http.postBuffer 524288000,将http.postBuffer设置为500MB大小
通过 Git 命令:git config http.postBuffer 查看当前项目默认的 postBuffer 值
Updates were rejected because the remote contains work that you do not have locally 解决办法:
git pull origin master先从远程仓库pull下来,再push