Git报错收集

Git报错收集

error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 Gateway Time-out

fatal: The remote end hung up unexpectedly

解决办法,只需要加上--depath=1:

git clone --depth=1 https://git.oschina.net/xxxxxx.git 

remote: Coding 提示: Authentication failed

$ git config --global user.name " "  //--global全局设置   注意
$ git config --global user.email 

mac下 zsh: command not found: rvm

zsh: command not found: rvm-prompt

1
解决方案就是

vim ~/.zshrc
2

在最后一行加入:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

3,最后

source ~/.zshrc

Git 命令

  • 暂存
git stash

取消暂存

git stash

Git回撤 取消commit

git reset --soft HEAD^

GitHub代码总是拉取失败

error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

解决办法:

一般是由于大文件造成的提交或者拉取失败,curl的postBuffer默认值太小,增大缓存配置就好了
git config --global http.postBuffer 1048576000

你可能感兴趣的:(Git报错收集)