-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
73 lines (73 loc) · 2.38 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
[init]
templatedir = ~/.git_template
defaultBranch = main
[push]
default = simple
[color]
ui = auto
[alias]
aa = add --all
add-unmerged = "!git add `git diff --name-only --diff-filter=U`"
ap = add --patch
br = branch
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
ca = commit -S --amend
ci = commit -S
co = checkout
co-pr = !sh -c 'git fetch origin pull/$1/head:pr/$1 && git checkout pr/$1' -
create-branch = !sh -c 'git push origin HEAD:refs/heads/$1 && git fetch origin && git branch --track $1 origin/$1 && cd . && git checkout $1' -
ctags = "!sh -c '[ -f .git/hooks/ctags ] || git init; .git/hooks/ctags' git-ctags"
d = diff
dc = diff --cached
delete-branch = !sh -c 'git push origin :refs/heads/$1 && git branch -D $1' -
edit-unmerged = "!$EDITOR `git diff --name-only --diff-filter=U`"
fix = "!f() { ${EDITOR} `git diff --name-only`; }; f"
la = config --get-regexp alias
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
lga = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit --all
merge-branch = !git checkout master && git merge @{-1}
mr = !sh -c 'git fetch $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2' -
nuke = '!f() { git branch -d $1 && git push origin --delete $1; }; f'
pr = !gh pull-request
pu = "!git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)"
st = status
up = !git fetch origin && git rebase origin/master
[core]
excludesfile = ~/.gitignore
autocrlf = input
[merge]
ff = only
[merge "ours"]
driver = true
[commit]
template = ~/.gitmessage
gpgsign = true
[fetch]
prune = true
[rebase]
autosquash = true
[include]
path = ~/.gitconfig.local
[user]
name = John T Skarbek
email = [email protected]
signingkey = 5997B93439865A09
[github]
user = jtslear
[credential]
helper = !aws codecommit credential-helper $@
UseHttpPath = true
[pull]
rebase = false
[gpg]
format = ssh
[rerere]
enabled = true
[column]
ui = auto
[branch]
sort = -committerdate
[maintenance]
repo = /Users/skarbek/projects/dedicated/instrumentor
repo = /Users/skarbek/projects/gitlab
repo = /Users/skarbek/projects/www-gitlab-com