-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
54 lines (44 loc) · 1.11 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
43
44
45
46
47
48
49
50
51
52
53
54
[color]
ui = true
[user]
name = Mario Rogic
email = [email protected]
[alias]
# one-line log
l = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
a = add
ap = add -p
c = commit --verbose
ca = commit -a --verbose
cm = commit -m
cam = commit -a -m
m = commit --amend --verbose
d = diff
ds = diff --stat
dc = diff --cached
dn = diff --name-only HEAD origin/master
s = status
co = checkout
cob = checkout -b
cpnc = cherry-pick --no-commit
# list branches sorted by last modified
b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
bd = branch -d
fo = fetch origin
psh = push origin
pshm = push origin master
pl = pull origin
plm = pull origin master
# list aliases
la = "!git config -l | grep alias | cut -c 7-"
# maybe when this works...
# up = pull --rebase --autostash
[push]
default = current
[core]
editor = /opt/homebrew/bin/nvim
ignorecase = false
excludesfile = ~/.gitignore
autocrlf = input
[pager]
grep = false