查看远端( origin ) 的时候,发现有些分支已经 stale 了
git remote show origin
stale (use 'git remote prune' to remove)
修剪
git remote prune origin
查看远端( origin ) 的时候,发现有些分支已经 stale 了
git remote show origin
stale (use 'git remote prune' to remove)
修剪
git remote prune origin
场景:
如果源站文件有更新,则重新下载。如果没有更新,则不下载。全部是根据 Last-Modified 来判断。
http://blog.yjl.im/2012/03/downloading-only-when-modified-using.html
http://blog.yjl.im/2012/03/downloading-only-when-modified-using_23.html
如果用户的 cookie 中已经访问过 m 站,或使用手机端的时候,跳转到手机端
if ($cookie_mobile = "1") {
rewrite ^ http://m.example.com/ redirect;
}
if ($http_user_agent ~* "android|iphone|ipod|windows\sphone") {
rewrite ^ http://m.example.com/ redirect;
}
通过 systemctl 控制
1. 字符界面
systemctl set-default multi-user.target
2. 图形界面
systemctl set-default graphical.target
先装 bitbucket 中的 origin 命名成 bitbucket
git remote rename origin bitbucket
在 github 添加 origin
git remote add origin https://github.com/username/myproject.git
将 master 发上去
git push origin master
将 bitbucket 删掉
git remote rm bitbucket
在这里操作可以查看 .git/config 中的变化
http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
使用 pigz nc tar 组合命令完成
发送方( pigz -4 代表压缩等级)
tar c 20151014 | pigz -4 | nc -l 3389
接收方
nc 192.168.1.55 3389 | pigz -d | tar xf -