kk Blog —— 通用基础


date [-d @int|str] [+%s|"+%F %T"]
netstat -ltunp
sar -n DEV 1

git pull 跳过压缩 remote compression

https://www.itguest.com/post/bbbdgg1a2.html

git pull

1
remote: Compressing objects: 24%

来自 git 文档:

1
2
3
4
5
6
7
8
9
10
11
12
13
core.bigFileThreshold   

    Files larger than this size are stored deflated, without 
    attempting delta compression.  Storing large files without 
    delta compression avoids excessive memory usage, at the 
    slight expense of increased disk usage. 

Default is 512 MiB on all platforms. 
This should be reasonable for most projects as source code and other  
text files can still be delta compressed,  
but larger binary media files won't be. 

Common unit suffixes of 'k', 'm', or 'g' are supported

可以使用

1
git config --add core.bigFileThreshold 1

tools, git

« JavaScript URLdecode函数 linux rsync命令 »