forked from justone/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitconfig
67 lines (67 loc) · 2.51 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
[user]
name = Josh Beckman
email = email@andjosh.com
[core]
editor = nvim
[alias]
ada = add -A
add = add -v
ali = config --get-regexp alias
br = branch
browse = !open $(git remote get-url origin | sed s!git@!https://! | sed s!com:!com/! | sed s!\\\\.git!!)
browseissues = !open $(git remote get-url origin | sed s!git@!https://! | sed s!com:!com/! | sed s!\\\\.git!!)/issues
browselines = !open $(git remote get-url origin | sed s!git@!https://! | sed s!com:!com/! | sed s!\\\\.git!!)/pipelines
browsemerges = !open $(git remote get-url origin | sed s!git@!https://! | sed s!com:!com/! | sed s!\\\\.git!!)/merge_requests
browsepulls = !open $(git remote get-url origin | sed s!git@!https://! | sed s!com:!com/! | sed s!\\\\.git!!)/pulls
brs = show-branch --sha1-name
c = commit
ca = commit --amend
cac = commit --amend -c
cb = symbolic-ref --short HEAD # get current branch name, simply
ci = commit -a --verbose
cm = commit -am
co = checkout
cp = cherry-pick
fc = log --all --grep
fix = "!f() { nvim -p `git diff --name-only | uniq`; }; f" # via https://gist.github.com/jacobvosmaer/3187346
fup = push --set-upstream origin HEAD
get = fetch --all
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
ls = ls-files
lsv = log --pretty=format:'%C(yellow)%h %C(cyan)%ad%C(red)%d %C(reset)%s%C(green) [%cn]' --decorate --date=short --numstat
lu = for-each-ref --sort=-committerdate --format='%(committerdate:relative)%09%(refname:short)' refs/heads
prose = log --pretty=format:%s
pu = pull origin
rearrange = "!git rebase -i $(git merge-base HEAD @{u})"
rev = merge --no-ff --no-commit
s = status -sb
st = status
tree = log --all --graph --decorate --oneline
up = push origin
uptags = !git push origin && git push origin --tags
web = instaweb
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
[init]
templatedir = ~/.git-templates
[github]
user = joshbeckman
[ghi]
token = !security find-internet-password -a joshbeckman -s github.com -l 'ghi token' -w
[push]
default = simple
[pull]
rebase = false
[rerere]
enabled = true
[gitlab]
url = https://gitlab.com
[merge]
tool = vimdiff
[commit]
template = ~/.git-templates/.gitmessage
verbose = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true