-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
27 lines (27 loc) · 895 Bytes
/
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
[include]
# System-specific configs go in a separate file
# This is useful for things like work vs personal email addresses and system-specific tooling
path = ~/.gitconfig.local
[alias]
st = status -sb
ci = commit
co = checkout
lg = log --graph --pretty=format:'%Cred%h%Creset %C(cyan)%G?%Creset -%C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset %ad %Cgreen(%cr)' --abbrev-commit --date=local
#hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
hist = log --name-status --show-signature
rank = shortlog -sn
last-tag = describe --abbrev=0
changelist = !LT=$(git last-tag) && echo "" && git shortlog $LT..HEAD
[push]
default = simple
[branch]
autosetuprebase = never
[url "[email protected]:"]
insteadOf = https://github.com/
# moved to .gitconfig.local on Mac machines
# [gpg]
# program = /usr/local/MacGPG2/bin/gpg2
[pull]
ff = only
[init]
defaultBranch = main