习惯用gitbash连接ssh,但是长时间无操作直接断开,简单配置一下:
vim /etc/ssh/sshd_config ClientAliveInterval 30 #每隔30秒发送一次请求给client,然后client响应,从而保持连接 ClientAliveCountMax 3 #发出请求后,客户端没有响应得次数达到3,就自动断开连接
重启ssh:
systemctl restart sshd.service
centos7成功
1.全局用户信息设置 git config --global user.name gaojiufeng git config --global user.email 392223903...
1.远程仓库的协作模式开发者把自己最新的版本推到线上仓库,同时把线上仓库的最新代码,拉到自己本地即可2.注册git帐号国外: http://www.github.com国内: http://git.oschina.net2.在码云创建项目,不要初始化readmegit push https://gi...
git pull https://git.oschina.net/392223903/learn.git master 换为您的git地址...
1.关机Process.Start("shutdown", "-s -t 0"); 2. 注销 Proc...
public static string GetMD5(string str) { //创建MD5对象 MD5 md5 = MD5.C...
private const string fantizi = "高久峰是個程序員"; private const string jiantizi = "高久峰是个程序员...