forked from dcosson/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
53 lines (53 loc) · 1.86 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
[user]
name = Greg Einfrank
email = [email protected]
username = gregeinfrank
[core]
excludesfile = /Users/gregoryeinfrank/.gitignore
[rerere]
enabled = 1
[remote "origin"]
push = HEAD
[branch "master"]
merge = refs/heads/master
[diff "scpt"]
textconv = osadecompile
binary=true
[alias]
br = branch
ci = commit -a
co = checkout
cob = "!git co -b $1 && git push -u origin"
rmb = "!git br -D $1 && git push origin --delete $1"
dwc = diff -w -M --color-words
fix = rebase -i origin/master
new = !sh -c 'git log $1@{1}..$1@{0} "$@"'
recent-branches = --paginate for-each-ref --format='%(committerdate:relative)%09%(refname:short)' --sort='-committerdate' refs/heads
recent-branches-origin = --paginate for-each-ref --format='%(committerdate:relative)%09%(refname:short)' --sort='-committerdate' refs/remotes/origin
re = remote -v
st = status
sup = "submodule foreach 'git co master; git up'"
tree = log --graph --decorate --pretty=oneline --abbrev-commit --all
up = "!git remote update origin -p; git merge --ff-only @{u}"
everything = log --pretty=format: --name-only --diff-filter=A
df = diff
ds = diff --staged
browse = "!hub browse"
;delete-merged = "!git fetch --prune && diff --new-line-format='' --unchanged-line-format='' <(git local-branches) <(git remote-branches | sed 's/^remotes\/origin\///') | xargs git branch -d"
remote-branches = "!git branch -l -a | grep --color=never 'remotes/origin' | tr -d '* '"
local-branches = "!git branch -l | tr -d '* '"
[push]
default = current
[merge]
defaultToUpstream = true
[color]
ui = true
[pull]
default = current
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
[credential "https://git-codecommit.*.amazonaws.com"]
helper = !aws codecommit credential-helper $@
UseHttpPath = true