-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitconfig
40 lines (36 loc) · 1.4 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
[user]
name = Lucas McDaniel
email = [email protected]
[core]
#editor = mate -w
excludesfile = ~/.gitignore
editor = /usr/bin/vim
[format]
pretty = %Cred%h%Creset%C(yellow)%d%C(green) %s %C(white)(%an - %C(bold blue)%cr%Creset)
[alias]
notpushed = log --branches --not --remotes=YOUR_GITHUB_USERNAME
graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '}'; }; f"
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
st = status
ci = commit
br = branch
co = checkout
df = diff
rb = rebase
#Note - depends on the pretty format above
lg = log --graph --abbrev-commit --date=relative
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
histmylast = log --all --pretty=format:'%h %cd %s (%an)' --since='3 days ago' --graph --author='MY NAME'
histlast = log --all --pretty=format:'%h %cd %s (%an)' --since='3 days ago' --graph
who = shortlog -s --
cherry = cherry --verbose
type = cat-file -t
dump = cat-file -p
ignore = !git update-index --assume-unchanged
unignore = !git update-index --no-assume-unchanged
ignored = !git ls-files -v | grep ^[a-z]
cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"
[push]
default = simple
[credential]
helper = osxkeychain