-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
42 lines (37 loc) · 1.35 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[user]
name = Peter Heywood
email = peethwd@gmail.com
[credential]
helper = cache --timeout=3600
[push]
default = simple
[alias]
lg = 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(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
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
log-unpushed = log --branches --not --remotes --simplify-by-decoration --decorate --oneline
cp = cherry-pick
st = status -s
cl = clone
ci = commit
co = checkout
br = branch
diff = diff --word-diff
dc = diff --cached
uc = reset --soft 'HEAD^'
sl = shortlog -s -n
sle = shortlog -s -n -e
mg = merge --no-ff
lhs = describe --long --dirty --tags --always
[submodule]
recurse = true
# Any requests to https:// will actually be redirected to git@github.com. I.e. always use git/ssh instead of https
[url "git@github.com:"]
insteadOf = https://github.com/
[status]
# Show all untracked files on git status (i.e. the contents of a new directory). This can make things slow...
showUntrackedFiles = all
[pull]
rebase = true
[init]
defaultBranch = main