-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig.template
More file actions
89 lines (73 loc) · 2.15 KB
/
gitconfig.template
File metadata and controls
89 lines (73 loc) · 2.15 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[user]
name = ${NAME}
email = ${EMAIL}
[url "git@github.com:"]
insteadOf = https://github.com/
[core]
excludesfile = ~/.gitignore_global
whitespace = cr-at-eol
autocrlf = input
[branch]
autosetuprebase = always
autosetupmerge = always
[alias]
st = status -sb
ci = commit
br = branch -v
b = branch -v
co = checkout
re = remote -v
r = remote -v
df = diff
d = diff
dw = diff -w
dc = diff --cached
ls = ls-files
lp = log -p
lol = log --graph --decorate --pretty=format:'%C(bold blue)%h%C(reset) %C(yellow)(%ar)%C(reset) %C(green)%an%C(auto)%d%C(reset) %C(white)%s%C(reset)' --abbrev-commit
lola = !"git lol --all"
ll = "log --pretty=oneline --abbrev-commit"
lg = log --pretty=oneline --abbrev-commit --graph --decorate --date=relative
lgt = log --graph --pretty=format:'%Cred%h%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
lgtt = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
# Show files ignored by git:
ign = ls-files -o -i --exclude-standard
unstage = reset HEAD --
fo = fetch origin --all
pod = push origin dev
changeset = log --name-status -n 1 HEAD
cs = !"git changeset"
dt = difftool -d
permission-reset = !git diff -p -R --no-color | grep -E \"^(diff|(old|new) mode)\" --color=never | git apply
[color]
ui = auto
[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
[apply]
whitespace = nowarn
[credential]
helper = cache --timeout=14440
[push]
default = current
# git for-each-ref --format='%(*committerdate:iso) %(refname) %(*objectname) %(objectname) (%(subject))' refs/tags | sort -n | awk '{ print $1, $2, $5, $4, $7,$8,$9,$10,$11; }'
[diff]
tool = meld
[instaweb]
local = true
#httpd = python -m SimpleHTTPServer
httpd = apache2 -f
port = 4321
modulePath = /usr/lib/apache2/modules
[web]
browser = google-chrome