git 记录

2017/8/9 posted in  git

在使用内网github的时候发现问题

Empty reply from server

整理了一圈都发现,每次在git -T git@192.168.11.204这样的时候都需要输入密码,但是不要用户名,实际上用户名又不对。

查了一圈看到git config里面有这样一行配置,应该是以前配置的用于走ss的

illiamtekiMacBook-Pro:sinhr valentine\( git config --list
credential.helper=osxkeychain
http.proxy=socks5://127.0.0.1:1080
core.excludesfile=_Users_valentine/.gitignore_global
difftool.sourcetree.cmd=opendiff "\)LOCAL" "\(REMOTE"
difftool.sourcetree.path=
mergetool.sourcetree.cmd=_Applications_SourceTree.app_Contents_Resources/opendiff-w.sh "\)LOCAL" "\(REMOTE" -ancestor "\)BASE" -merge "$MERGED"
mergetool.sourcetree.trustexitcode=true

设置代理使用

git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy