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^
网友评论