-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
75 lines (64 loc) · 1.46 KB
/
.gitconfig
File metadata and controls
75 lines (64 loc) · 1.46 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[include]
path = .gitconfig.private
[credential]
helper = osxkeychain
[alias]
# abbrevs
st = status
co = checkout
ci = commit
b = branch
# aliases
amend = commit --amend
m = checkout master
rh = reset --hard HEAD
unstage = reset --
refresh = !git stash && git pull --rebase && git stash pop
# log
snake = log --pretty=format:'' --graph
l = log --pretty=format:'%C(yellow)%h%Creset - %C(green)%an%Creset %C(cyan)%d %C(reset)%s %Cgreen(%cr)%Creset' --graph
lg = log --pretty=format:'%C(yellow)%h%Creset - %C(green)%an%Creset %C(cyan)%d %C(reset)%s %Cgreen(%cr)%Creset' --stat
# last commit
sha = log -n 1 --format="%H"
ss = log -n 1 --format="%h" # Show short sha
pb = !git log -n 1 --format="%H" -z | pbcopy # Copy sha to pasteboard
# When I'm confused about changes that are staged
huh = diff HEAD
# typo handling
commmit = commit
[push]
default = current
[branch]
autosetupmerge = always
autosetuprebase = always
[core]
autocrlf = input
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[color]
ui = true
diff = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[diff]
color = auto
[pager]
color = true
[status]
color = auto
# trying this out
[gitflow]
base = master
release = release