将git log替换成git lg,并且彩色显示,方便查看及回滚到某个版本:
1git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
Git 常用命令:
12345678910111213141516171819202122232425262728291.到本地仓库 ...
想看看你在 Mac 的下载历史记录么? 根据OS X Daily 上的说明只要在Mac的Terminal下执行下面的命令就可以:
1sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent'
Show一下我的MBP的:
123456sakishum$ sqlite3 ~/Library/Preferences/com.apple.LaunchServices.Qua...
看看你在Linux下最常用的命令是哪些? 在Linux或者Mac的Terminal下执行下面的命令就可以:
1history | awk '{CMD[$2]++;count++;} END { for (a in CMD )print CMD[ a ]" " CMD[ a ]/count*100 "% " a }' | grep -v "./" | column -c3 -s " " -t |sort -nr | nl | head -n10
Sh...