-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
23 lines (23 loc) · 752 Bytes
/
gitconfig
File metadata and controls
23 lines (23 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[alias]
; shorthands
co = checkout
cp = cherry-pick
camend = commit --amend
; loggers
lol = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
; skips
skip = update-index --skip-worktree
unskip = update-index --no-skip-worktree
skipped = !git ls-files -v | grep ^S
; rebases
rb = rebase
rbi = rebase --interactive
rba = rebase --abort
rbc = rebase --continue
; Mirroring (WIP)
pp = !git pull && git push
mirror = !sh -c 'git remote add $1 $2 && git remote set-url --push $1 _nopush' -
pipeline = !sh -c 'git remote add $1 $2 && git remote set-url --push $1 $3' -
m2 = !sh -c 'git pipeline $1 $2 _nopush' -
[include]
path = ~/.gitconfig_local