-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
61 lines (50 loc) · 1.39 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
55
56
57
58
59
60
61
[user]
name = Daniel Watson
email = [email protected]
[core]
editor = vim
excludesfile = ~/.gitignore_global
[color]
ui = auto
[alias]
st = status --short
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
who = shortlog -s --
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
unstage = reset HEAD
# pretty ascii graph log format
l = log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset\
%s %Cblue[%an]%Creset %Cgreen(%cr)%Creset'\
--abbrev-commit --date=relative
# pretty log with all branches
la = !git l --all
# really useful for high level picture
ld = !git l --all --simplify-by-decoration
# all commits unreachable via branch, tag, or child commit
# ignores anything pointed to by the reflog
# so it displays all commits in jeopardy of garbage collection
loose-commits = !"for SHA in $(git fsck --unreachable\
--no-reflogs | grep commit |\
cut -d\\ -f 3); do git log -n 1 $SHA; done"
# Creates a branch for a pull request from stash
prstash = "!f() { git fetch $1 refs/pull-requests/$2/from:pull_request_$2; } ; f"
[push]
default = tracking
[branch]
autosetuprebase = always
[diff]
tool = diffmerge
renameLimit = 999999
[merge]
tool = kdiff3
renameLimit = 999999
[mergetool]
keepBackup = false
[rerere]
enabled = true
[include]
path = ~/.gitconfig_local