-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
70 lines (57 loc) · 1.68 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
62
63
64
65
66
67
68
69
70
[push]
default = simple
[alias]
fb = pull --rebase
d = diff
dh = !"git diff-index --quiet HEAD --"
s = stash
sp = stash pop
sl = stash list
ld = log --oneline --decorate
ca = commit --amend
can = commit --amend --no-edit
cm = checkout master
pom = push origin master
mbl = log --pretty=format:"%h%x09%an%x09%ad%x09%s" --merges
lc = log --branches --not --remotes --no-walk --decorate --oneline
pb = push --set-upstream origin
# Switch to a branch, creating it if necessary
cb = "!f() { git checkout -b \"$1\" 2> /dev/null || git checkout \"$1\"; }; f"
# Remove branches that have already been merged with master
dm = "!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
# recent branches
rb = for-each-ref --sort=-committerdate refs/remotes/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold # line info
old = red # deletions
new = green
[color "status"]
added = green
changed = yellow
untracked = cyan
[apply]
whitespace = fix
[diff]
# Detect copies as well as renames
renames = copies
[help]
# Automatically correct and execute mistyped commands
autocorrect = 1
[merge]
# Include summaries of merged commits in newly created merge commit messages
log = true
[remote "origin"]
prune = true
[core]
editor = vim
autocrlf = input
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true