-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
53 lines (53 loc) · 1.42 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
[user]
name = Franklin Henderson
[push]
default = simple
[url "https://"]
insteadOf = git://
[core]
quotepath = false
editor = vim
[color]
ui = auto
[color "diff"]
meta = white bold
commit = green bold
frag = blue
old = red bold
new = green bold
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[alias]
co = checkout
br = branch
ci = commit
st = status
aa = add --all
di = diff
dc = diff --cached
dh1 = diff HEAD~1 -b
amend = !git commit --amend --no-edit
up = pull --rebase --autostash
# Fancy logging.
# h = head
# hp = head with patch
# r = recent commits, only current branch
# ra = recent commits, all reachable refs
# l = all commits, only current branch
# la = all commits, all reachable refs
head = !git r -1
h = !git head
hp = "!. ~/.githelpers && show_git_head"
r = !GIT_NO_PAGER=1 git l -30
r10 = !GIT_NO_PAGER=1 git l -10
ra = !git r --all
l = "!. ~/.githelpers && pretty_git_log"
la = !git l --all
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
# show all commit since last tag
since = !git log `git describe --tags --abbrev=0`..HEAD
unstage= !git reset --soft