forked from tangledhelix/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
84 lines (70 loc) · 2.33 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
[user]
name = Dan Lowe
email = [email protected]
[alias]
co = checkout
ci = commit
cm = commit -m
st = status -s
lol = log --pretty=oneline --abbrev-commit --graph --decorate
# also use "lg -p"
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lgv = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --name-status
logv = log --name-status
unstage = reset HEAD
aa = add .
# Not yet added - doesn't include ignored files
new = ls-files --others --exclude-standard
# Files that are in the staging area
added = diff --cached --name-only
today = log --stat --since='1 Day Ago' --graph --pretty=oneline --abbrev-commit --date=relative
ff = merge --ff-only
pullsubs = submodule foreach git pull origin master
tags = tag -l
whichtag = !git name-rev --tags --name-only $(git rev-parse HEAD)
branches = branch -a
branchesbydate = !git for-each-ref --sort='-committerdate' --format='%(committerdate) %(refname)' refs/heads | sed -e 's,refs/heads/,,'
remotes = remote -v
filechanges = diff --summary
changes = diff --name-status
wdiff = diff --word-diff
showbranch = branch -a --contains
id = log --pretty=format:'%H' -n 1
hash = log --pretty=format:'%H' -n 1
[core]
pager = less
editor = vim
quotepath = false
excludesfile = ~/.gitignore
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = auto
[github]
user = tangledhelix
[diff]
# For Github-style word diffs
wordRegex = [^[:space:]]
tool = Kaleidoscope
[help]
autocorrect = 1
[push]
# Push current branch even if you've never pushed it before
default = current
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[mergetool "Kaleidoscope"]
cmd = /usr/local/bin/ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
trustexitcode = true
[merge]
tool = Kaleidoscope
[difftool "Kaleidoscope"]
cmd = /usr/local/bin/ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\"
[difftool]
prompt = false
[mergetool]
prompt = false