-
Notifications
You must be signed in to change notification settings - Fork 6
/
.gitconfig
27 lines (27 loc) · 1.07 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
[fetch]
prune = true
[push]
autoSetupRemote = true
default = current
[branch]
autoSetupRebase = always
[alias]
co = checkout
cb = checkout -b
ci = commit -m
ca = !git add -A . && git status -s && git commit -m
s = status -s
br = branch
unstage = reset .
db = !git branch -D $1 && git push --delete origin $1
dlb = !git branch -D $1
drb = !git remote prune origin && git push --delete origin $1
aa = !git add -A . && git status -s
pushall = "!git push --all; git push --tags"
ct = "!git checkout -b $1 && git push --set-upstream origin $1"
ls = !git --no-pager log -10 --date=short --pretty='%C(yellow)%h%Creset - %C(yellow)%an%Creset %C(white)%ad%Creset%C(yellow)%d%Creset %Cgreen%s%Creset'
ll = !git log --date=short --pretty='%C(yellow)%h%Creset - %C(yellow)%an%Creset %C(white)%ad%Creset%C(yellow)%d%Creset %Cgreen%s%Creset'
lg = log --graph --abbrev-commit --date=relative --pretty='%C(yellow)%h%Creset - %C(yellow)%an%Creset%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset'
lf = show --pretty=\"format:\" --name-only
wtf = reflog
rs = remote show origin