git学习error: RPC failed; HTTP 413
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
ios 终端版本:
1,出现:error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 是因为用了https协议 没用gitlab协议

方案:先:git config --global http.postBuffer 52428800
后:git push -u origin master --tags
还是不行话,只能改成gitlab协议
改成gitlab协议方法:先:git remote -v
查看当前的协议:出现:
origin https://gitlab.xxx.com/ios/mixxxios.git (fetch)
origin https://gitlab.xxx.com/ios/mixxxios.git (push)
删除远端仓库:git remote rm origin
添加新仓库:git remote add origin git@gitlab.xxxg.com:ios/mixxxios.git
再查看:git remote -v
出现:
origin git@gitlab.xxx.com:ios/mixxxios.git (fetch)
origin git@gitlab.xxx.com:ios/mixxxxios.git (push)
接着: git push -u origin master --tags
就好了,如下图:

查看当前分支: git branch
* configzego

Command line instructions
You can also upload existing files from your computer using the instructions below.
Git global setup
git config --global user.name "zhaoxx"
git config --global user.email "zhaoxx@7xxe.com"
Create a new repository
git clone git@gitlab.axxxg.com:ios/askoversea_ios_configzego.git
cd askoversea_ios_configzego
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Push an existing folder
cd existing_folder
git init
git remote add origin git@gitlab.axxxg.com:ios/askoversea_ios_configzego.git
git add .
git commit -m "Initial commit"
git push -u origin master
Push an existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin git@gitlab.axxxg.com:ios/askoversea_ios_configzego.git
git push -u origin --all
git push -u origin --tags