Skip to content

Commit 8dd6c07

Browse files
authored
.gitconfig: log aliases
1 parent ecc4869 commit 8dd6c07

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.gitconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ email = [email protected]
66
[alias]
77
change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch -f --env-filter \"if [ \\\"$`echo $VAR`\\\" = '$OLD' ]; then export $VAR='$NEW'; fi\" $@; }; f "
88

9-
lg="log --graph --color --pretty=\"format:%h %an %Cblue%ae%Creset %Cgreen%s%Creset\""
9+
olg="log --graph --color --pretty=\"format:%h %an %Cblue%ae%Creset %Cgreen%s%Creset\""
10+
lg = log --first-parent --color --date=short --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit
11+
lgt = log --graph --color --date=short --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit
12+
lga = log --graph --color --all --date=short --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit
1013

1114
cm="commit"
1215
br="branch"

0 commit comments

Comments
 (0)