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