forked from rogeriochaves/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
89 lines (89 loc) · 2.21 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[core]
editor = vim
pager = less -FRSX
autocrlf = input
safecrlf = true
excludesfile = ~/.gitignore
attributesfile = ~/.gitattributes
whitespace = space-before-tab,indent-with-non-tab,trailing-space
excludesfile = ~/.gitignore
attributesfile = ~/.gitattributes
[user]
email = [email protected]
name = Pamela Ocampo
[alias]
amend = commit --amend
ap = add -p
br = branch
ca = commit --amend -C HEAD
ci = commit
cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"
cleanall = clean -f -d
co = checkout
current-branch = rev-parse --abbrev-ref HEAD
df = diff --cached --color --color-words
dff = diff --color --color-words
graph = log --graph --decorate --oneline --branches
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
l = log
lg = log -10 --graph --stat --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
ll = log --pretty=oneline
pfwl = push --force-with-lease
pr = pull --rebase
prom = pull --rebase origin master
s = status -sb
st = status
type = cat-file -t
undo = reset --soft HEAD^
[color]
branch = auto
diff = auto
interactive = auto
pager = true
status = auto
ui = true
[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 = red
[merge]
# Include summaries of merged commits in newly created merge commit messages
log = true
[help]
autocorrect = 1
[push]
default = current
[pull]
default = simple
# Use `origin` as the default remote on the `master` branch in all cases
[branch "master"]
remote = origin
merge = refs/heads/master
# URL shorthands
[url "[email protected]:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "[email protected]:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
[github]
user = pamo
[credential]
helper = osxkeychain
[init]
templatedir = ~/.git_template