-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitconfig
27 lines (26 loc) · 1.2 KB
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[init]
defaultBranch = "main"
[pull]
rebase = "false"
[color]
ui = true
[alias]
lg = !"git lg1"
lg1 = !"git lg1-specific --exclude=*/md-outputs* --exclude=*/gh-pages --all"
lg2 = !"git lg2-specific --exclude=*/md-outputs* --exclude=*/gh-pages --all"
lg3 = !"git lg3-specific --exclude=*/md-outputs* --exclude=*/gh-pages --all"
lg1-specific = log \
--graph \
--abbrev-commit \
--decorate \
--format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %s %C(dim)- %an%C(bold green) [%G?]%C(reset)%C(auto)%d%C(reset)'
lg2-specific = log \
--graph \
--abbrev-commit \
--decorate \
--format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %s %C(dim)- %an%C(bold green) [%G?][%GS] %C(reset)'
lg3-specific = log \
--graph \
--decorate \
--format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %s%n'' %C(dim)- %an <%ae> %C(reset) %C(dim)(committer: %cn <%ce>)%C(reset)'
pushb = !"git push --set-upstream $(git remote | head -n 1) $(git symbolic-ref HEAD --short)"