sshd 服务器设置
vim /etc/ssh/sshd_config
ClientAliveInterval 60
127 ClientAliveCountMax 1
mac 设置
vim /etc/ssh/ssh_config
TCPKeepAlive yes
ServerAliveCountMax 5
ServerAliveInterval 20
sshd 服务器设置
vim /etc/ssh/sshd_config
ClientAliveInterval 60
127 ClientAliveCountMax 1
mac 设置
vim /etc/ssh/ssh_config
TCPKeepAlive yes
ServerAliveCountMax 5
ServerAliveInterval 20
alias pull=”git pull”
alias pullr=”git pull -r”
alias commit=”git commit”
alias push=”git push”
alias branch=”git branch”
alias check=”git checkout”
alias st=”git status”
alias rig=”cd D:/WWW/xx”
linux下是 ProxyCommand nc -x 127.0.0.1:1080 %h %p,然而对windows下的git bash是不管用的。git bash必须得用connect,如下:
ProxyCommand connect -S 127.0.0.1:1080 %h %p
下载方式:connect
将 C:\HashiCorp\Vagrant\embedded\gems 下所有文件中的
https://rubygems.org 替换为:https://gems.ruby-china.com
装个插件试试
vagrant plugin install vagrant-winnfsd
参考 https://gems.ruby-china.com/
解决方案如下:(主要两个 – 减号)
1. git config –system –unset credential.helper
2.试试能否拉取,如果不行,再试试用户目录下 .gitconfig 把如下删除
[credential]
helper = manager