forked from sitaktif/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
56 lines (50 loc) · 1.3 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
[user]
name = Benjamin Fuchs
email = [email protected]
[core]
excludesfile = ~/.gitexclude
editor = vim
whitespace = trailing-space,space-before-tab,tab-in-indent
autocrlf = input
[diff]
tool = meld
submodule = log
[merge]
tool = meld
[color]
ui = auto
[color "branch"]
current = blue reverse
local = blue
remote = yellow
[color "diff"]
meta = yellow
frag = magenta
old = red
new = green
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
st = status
ci = commit
br = branch
co = checkout
cdiff = diff --cached
out = !git fetch && git log FETCH_HEAD
in = !git fetch && git log ..FETCH_HEAD
unstage = reset HEAD --
# Snapshot without changing working tree
snapshot = git stash save "snapshot: $(date)" || git stash apply "stash@{0}"
# Tip: use git diff --patience (or git pull/merge -s patience) when there
# is a lot of repeated lines (see
# http://blog.apiaxle.com/post/handy-git-tips-to-stop-you-getting-fired/)
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
last = log -1 HEAD
[credential]
helper = cache
[push]
default = simple