-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
38 lines (38 loc) · 1.01 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
[user]
name =
email =
[core]
autocrlf = input
excludesfile = ~/.gitignore
whitespace = space-before-tab,-indent-with-non-tab,trailing-space
# Make `git rebase` safer on OS X
trustctime = false
[branch]
autosetupmerge = true
[color]
ui = true
[pack]
threads = 0
[push]
default = matching
[alias]
# nice git pull
up = "!git remote update -p; git merge --ff-only @{u}"
pr = pull --rebase
# show a nice log commit tree
l = log --pretty=oneline -n 20 --graph --abbrev-commit
# current working tree status using the short format
s = status -s
# diff between the latest commit and the current state
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
# delete merged branches
dm = "!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
# show top commiters
contributors = shortlog --summary --numbered
[filter "media"]
clean = git media clean %f
smudge = git media smudge %f
required = true
[apply]
# Detect whitespace errors when applying a patch
whitespace = fix