常用的 Git Alias

重装了一次电脑,记录一下 Git alias 配置。

1
2
3
4
5
6
7
8
[user]
name = Jinloh WU
email = i@tiaobug.com
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
ac = !git add . && git commit -m
acp = "!f() { git add . && git commit -m \"$1\" && git push; }; f"
acpg = "!f() { git add . && git commit -m \"$1\" && git push && git push github; }; f"
Alias 作用
lg 彩色图形化 log
ac add . + commit -m
acp add + commit + push 一条龙
acpg 同上,额外 push 到 github remote

顺手记录:Thinkbook 14+ 用 U 盘启动时,F12 引导选择后无法正常启动,需要 F1 进 BIOS 把安全启动(Secure Boot)关掉就可以了。

Notice: 正常情况下,这里会有一个基于utteranc.es的留言系统,如果看不到,可能要想想办法才能看到。

Powered by Hexo and Hexo-theme-hiker

Copyright © 2012 - 2026 tiaobug.com All Rights Reserved.

鲁ICP备2024124237号-1