-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
executable file
·82 lines (69 loc) · 2.04 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
# [user]
# name = Fredrick Myrvoll
# email = fredrickmyrvoll@gmail.com
# signingkey = "12C860312C1574A4"
[gpg]
program = gpg
[core]
trustctime = true
autocrlf = false #true
editor = vim
excludesfile = /home/fredrick/.gitignore_global
#[commit]
# gpgsign = true
[color]
ui = true
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red
new = cyan
[color "status"]
added = yellow
changed = green
untracked = cyan
[credential]
helper = osxkeychain
[push]
default = simple
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
s = status
c = commit -vS
p = add -p
co = checkout
br = branch
amend = commit -v --amend
conflicts = diff --name-only --diff-filter=U
commit = commit -v
last = log -1 HEAD
pull = pull --ff-only
rebase = rebase -v
staged = diff --staged
supdate = submodule foreach git pull -f origin master
undo = reset --soft HEAD~
unstage = reset HEAD --
url =! "open -u https://bitbucket.org/$(git remote show origin -n | grep h.URL | sed 's/.*://;s/.git$//') "
url-pr =! "open -u https://bitbucket.org/$(git remote show origin -n | grep h.URL | sed 's/.*://;s/.git$//')/pull-requests/new"
feature = 'git fetch; git checkout -b $1 ${2:-"origin/master"}'
publish = "git push -u origin $(git rev-parse --abbrev-ref HEAD) 2>&1 >/dev/null | awk '/pull request/{getline; print \\$2; fflush()}' | xargs open"
unpublish = "!sh -c 'git push --delete origin $(git rev-parse --abbrev-ref HEAD --)' -"
whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
[merge]
conflictstyle = diff3
## Bitbucket https-to-git
[url "git@bitbucket.org:"]
insteadOf = https://bitbucket.org/
[url "git@bitbucket.org:"]
insteadOf = https://fmyrvoll@bitbucket.org/
[url "git@bitbucket.org:"]
insteadOf = https://fredrick@bitbucket.org/
[help]
autocorrect = 1