-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
33 lines (33 loc) · 980 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
28
29
30
31
32
33
[core]
editor = emacs -nw -Q
excludesfile = ~/.gitignore
pager = less -RX
[alias]
st = status -sb
ci = commit
cia = commit --amend
br = branch
co = checkout
df = diff
dfw = diff --word-diff
lga = log --graph --pretty=format:'%C(magenta)%h%Creset %C(bold cyan)%d%C(reset) %s - %Cgreen%cr by %an%Creset' --abbrev-commit --date=relative
lg = log --graph --pretty=format:'%C(magenta)%h%Creset %C(bold cyan)%d%C(reset) %s - %Cgreen%cr by %an%Creset' --abbrev-commit --date=relative -n 10
lgb = log --graph --pretty=format:'%C(magenta)%h%Creset %C(bold cyan)%d%C(reset) %s - %Cgreen%cr by %an%Creset' --abbrev-commit --date=relative --remotes --branches
ru = rebase @{upstream}
rui = rebase -i @{upstream}
fixup = commit -a --fixup=HEAD
amend = commit -a --amend --no-edit
[user]
name = Nick Lynch
[color]
ui = true
[color "branch"]
current = cyan
[diff]
renames = true
[push]
default = tracking
[fetch]
prune = true
[init]
defaultBranch = main