forked from lewagon/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
43 lines (34 loc) · 999 Bytes
/
gitconfig
File metadata and controls
43 lines (34 loc) · 999 Bytes
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
[user]
name = "benoitlecorre"
email = "bnt.lecorre@gmail.com"
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = auto
[color "branch"]
current = green
remote = yellow
[core]
editor = vim
pager = cat
[alias]
co = checkout
st = status
br = branch
ci = commit
fo = fetch origin
d = !git --no-pager diff
dt = difftool
stat = !git --no-pager diff --stat
# Clean merged branches
sweep = !git branch --merged master | grep -v 'master$' | xargs git branch -d && git remote prune origin
# http://www.jukie.net/bart/blog/pimping-out-git-log
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
# Serve local repo. http://coderwall.com/p/eybtga
# Then other can access via `git clone git://#{YOUR_IP_ADDRESS}/
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git
m = checkout master
[push]
default = simple