-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
62 lines (49 loc) · 1.38 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
[github]
user = cristianounix
email = [email protected]
[assembla]
name = cristianounix
email = [email protected]
[user]
name = Cristiano S. Oliveira
email = [email protected]
[core]
pager = less -R
editor = /usr/bin/vim
excludesfile = /Users/vntcrol/.gitignore_global
[push]
default = tracking
#default = matching
#default = simple
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = true
[color "status"]
added = yellow
changed = cyan
untracked = red
#Merge com commit para marcar no grafo
[branch "development"]
mergeoptions = --no-ff
rebase = true
[branch "master"]
mergeoptions = --no-ff
[pretty]
# tut: http://gitimmersion.com/lab_10.html
# ref: http://linux.die.net/man/1/git-log
# Result: <short-sha> <commit-message> (<pointer-names>) -- <commit-author-name>; <relative-time>
nice = "%C(yellow)%h%C(reset) %C(white)%s%C(cyan)%d%C(reset) -- %an; %ar"
[alias]
who = !echo \"== Commits by Author:\\n`git shortlog -s -n`\\n\"
st = status
co = checkout
change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" $@; }; f "
[log]
date = iso
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[commit]