-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_gitconfig
78 lines (75 loc) · 2.57 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
[user]
name = bob walker
email = [email protected]
signingkey = 94E63432B71CE3CB
[includeIf "gitdir:~/git/dxw/"]
path = .gitconfig-dxw
[push]
default = upstream
[alias]
st = status
cv = commit -v
co = checkout
cb = checkout -b
br = branch
idiff = diff --cached
lg = log --pretty=oneline --topo-order --graph --abbrev-commit --decorate
ru = remote update
; ! is both a subcommand, and from the topdir and not the cwd
ss = !git submodule status
nm = branch --no-merged
pn = push -u origin HEAD
smash = !git reset --hard origin/$(git default-origin)
autosmash = !git rebase -i origin/$(git default-origin) --autosquash
govpress-master-merge = !git checkout -B master origin/master && git pull --ff-only && git merge --no-ff --no-edit origin/develop
govpress-main-merge = !git checkout -B main origin/main && git pull --ff-only && git merge --no-ff --no-edit origin/develop
praise = blame
whose-line-is-it-anyway = blame
merge-request = mr create -d
gpr = !lab mr create origin develop
prg = !hub pull-request
pull-request = !hub pull-request
recommit = commit --amend --no-edit
save = !git add . && git commit --no-verify -m \"WIP: auto save at $(date '+%Y%m%d %H:%M:%S')\"
default-branch = !git checkout $(git default-origin)
default-origin = !git remote show origin | awk '/HEAD branch/ {print $NF}'
default-new-branch = "!fn() { git checkout -b $1 $(git default-origin); }; fn"
new = "!fn() { git checkout $(git default-origin); git pull; git default-new-branch $1; }; fn"
delete-merged = !git branch --merged $(git default-origin) | egrep -v \"(^\\*|^ $(git default-origin)$)\" | xargs git branch --delete
recent = --no-pager branch --sort=committerdate --format=\"%(committerdate:relative)%09%(refname:short)\"
px = log --reverse -p -S
[color]
diff = auto
branch = auto
status = auto
[include]
path = .git_email
[diff]
compactionHeuristic = true
[core]
excludesFile = /Users/bob/.gitignore
[commit]
gpgsign = true
verbose = true
[init]
defaultBranch = main
[credential]
helper = /usr/local/share/gcm-core/git-credential-manager-core
[credential "https://dev.azure.com"]
useHttpPath = true
[fetch]
prune = true
[pull]
ff = only
[credential "https://github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
[merge]
conflictStyle = zdiff3