-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
46 lines (38 loc) · 1017 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
34
35
36
37
38
39
40
41
42
43
44
45
46
[alias]
bl = blame
br = branch
ci = commit
cl = clone --recurse-submodules
co = checkout
cp = cherry-pick
d = diff
dump = cat-file -p
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
l = log --pretty=oneline -n 20 --graph --abbrev-commit
ls = log --oneline
s = status -s
sh = stash
shd = stash drop
shl = stash list
shp = stash pop
st = status
stash-unstaged = stash -k -u
type = cat-file -t
unstage = reset HEAD --
# Show the diff between the latest commit and the current state
df = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
# `git di $number` shows the diff between the state `$number` revisions ago and the current state
di = !"d() { git diff --patch-with-stat HEAD~$1; }; git diff-index --quiet HEAD -- || clear; d"
[user]
email = nlarzon@gmailcom
name = Niklas Larsson
[color]
ui = true
[fetch]
prune = true
[push]
default = simple
[core]
whitespace = warn
[gui]
commitmsgwidth = 52