-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitconfig
83 lines (79 loc) · 2.36 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
[credential]
[merge]
tool = bc33
[mergetool "diffmerge"]
cmd = sgdm --merge --result= \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\"
trustExitCode = true
[mergetool]
keepBackup = false
[diff]
tool = bc33
[difftool "diffmerge"]
cmd = sgdm \"$LOCAL\" \"$REMOTE\"
[difftool]
prompt = false
[difftool "bc33"]
#use cygpath to transform cygwin path $LOCAL (something like /tmp/U5VvP1_abc) to windows path, because bc3 is a windows software
cmd = \"c:/program files (x86)/beyond compare 3/bcompare.exe\" \"$LOCAL\" \"$REMOTE\"
[mergetool]
prompt = false
[mergetool "bc33"]
#trustExitCode = true
cmd = \"c:/program files (x86)/beyond compare 3/bcompare.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
[user]
name = Jesse Brown
email = jabrown85@gmail.com
[push]
default = upstream
[core]
editor = 'c:/program files/sublime text 2/sublime_text.exe' --wait --new-window
pager = less -r
#[color "log"]
# decorate = yellow bold
# frag = magenta bold
# old = red bold
# new = green bold
#[color "diff"]
# meta = yellow bold
# frag = magenta bold
# old = red bold
# new = green bold
#[color "branch"]
# local = yellow
# remote = green
#[color "status"]
# header = normal
# added = green
# updated = red
# changed = green
# untracked = red
# nobranch = red
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff --word-diff
dc = diff --cached --word-diff
r = reset
r1 = reset HEAD^
r2 = reset HEAD^^
rh = reset --hard
rh1 = reset HEAD^ --hard
rh2 = reset HEAD^^ --hard
sl = stash list
sa = stash apply
ss = stash save
# Show files ignored by git:
ign = ls-files -o -i --exclude-standard
# Pretty logs
ls = log --pretty=format:\"%C(green)%h %ad %C(yellow)%d %C(reset)%s%C(cyan) [%cn]\" --decorate --date=relative
ld = log --pretty=format:\"%C(green)%h %ad %C(yellow)%d %C(reset)%s%C(cyan) [%cn]\" --decorate --date=short
ll = log --pretty=format:\"%C(green)%h %ad %C(yellow)%d %Creset%s%C(cyan) [%cn]\" --decorate --numstat
fl = log --pretty=format:\"%C(green)%h %ad %C(yellow)%d %C(reset)%s%C(cyan) [%cn]\" --decorate --date=relative #pass a file name here
fld = log --word-diff -u #pass a file name here
# Diff a rev
diffr = "!f() { git diff "$1"^.."$1" --word-diff; }; f"
diffrt = "!f() { git difftool "$1"^.."$1" --word-diff; }; f"
# List aliases
la = "!git config -l | grep alias | cut -c 7-"