-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
20 lines (20 loc) · 880 Bytes
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = RemcoHalman
email = [email protected]
[init]
defaultBranch = main
[color]
ui = auto
[alias]
graph = log --oneline --graph --decorate
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
conflicts = diff --name-only --diff-filter=U
local-branches = !git branch -vv | cut -c 3- | awk '$3 !~/\\[/ { print $1 }'
recent-branches = !git branch --sort=-committerdate | head
authors = !git log --format='%aN <%aE>' | grep -v 'users.noreply.github.com' | sort -u --ignore-case
[commit]
template = ~/dotfiles/.git-commit-template.txt