git rm -r --cached a/2.txt //删除a目录下的2.txt文件 删除a目录git rm -r --cached a git commit -m "删除a目录下的2.txt文件" git push ...
分类:
其他好文 时间:
2016-10-31 13:33:04
阅读次数:
168
【Git使用技巧】 1.把一个已经存在于版本库中的文件加入忽略提交文件(.gitignore)中,需要如下代码: git rm --cached [文件路径] 例如: git rm --cached app/App/Common/Library/MCD.class.php 2.使用 git s 代替 ...
分类:
其他好文 时间:
2016-10-28 19:53:19
阅读次数:
263
free -m 命令:sync //将缓存写入硬盘 cat /etc/redhat-release 这个是查看系统版本的命令centos or other。 命令:echo 1 > /proc/sys/vm/drop_caches 清理缓存 权限可能是root 命令:echo 1 > /proc/s ...
分类:
编程语言 时间:
2016-10-27 09:58:37
阅读次数:
468
git diff 工作区与暂存区的差别 git diff -cached / git diff -staged 暂存区与版本库的差别 git diff HEAD 工作区与版本库的差别 git diff branch1 branch2 两个分支的最新commit的差别 git diff branch1 ...
分类:
其他好文 时间:
2016-10-26 11:22:25
阅读次数:
179
SeasLog-1.6.8 发布了,性能更优。 改进日志: 1.6.8: 优化内存使用和性能,修复已知Bug. - Fixed issue #97 PHP5.* Cached Block. - Fixed issue #98 SeasLog::analyzerDetail(NULL). - Fixe ...
分类:
Web程序 时间:
2016-10-18 18:14:06
阅读次数:
321
重装系统用自己之前生成的ssh key去clone项目的时候会提示"此主机的指纹不是由putty注册的"。 其中有段 The server's host key is not cached in the registry. You have no guarantee that the server ...
分类:
其他好文 时间:
2016-09-25 20:29:54
阅读次数:
987
.gitignore只能忽略那些原来没有被track的文件,如果某些文件已经被纳入了版本管理中,则修改.gitignore是无效的。那么解决方法就是先把本地缓存删除(改变成未track状态),然后再提交: git rm -r --cached . git add . git commit -m 'u ...
分类:
其他好文 时间:
2016-09-19 17:58:24
阅读次数:
110
可用内存:Available memory=free+buffers+cached,即2021=235+394+1392已使用内存:Used memory=used-buffers-cached,即30217=32003-394-1392而在用zabbix自身的Template OS Linux模版 ...
分类:
系统相关 时间:
2016-09-07 14:39:11
阅读次数:
5504
Free free 命令相对于top 提供了更简洁的查看系统内存使用情况: $ free total used free shared buffers cached Mem: 255268 238332 16936 0 85540 126384 -/+ buffers/cache: 26408 22 ...
分类:
系统相关 时间:
2016-08-30 10:47:25
阅读次数:
490
AsyncSubject emit the last value of a sequence only if the sequence completed. This value is then cached forever, and any other Observer that subscrib ...
分类:
Web程序 时间:
2016-08-17 06:45:21
阅读次数:
453