Updated .gitconfig
This commit is contained in:
parent
57ff5c0fb3
commit
ebc3f10d93
2 changed files with 32 additions and 7 deletions
39
.gitconfig
39
.gitconfig
|
@ -7,29 +7,54 @@
|
|||
|
||||
[alias]
|
||||
cg = config --global
|
||||
aliases = !git config --get-regexp alias | sed -re 's/alias\\.(\\S*)\\s(.*)$/\\1 = \\2/g'
|
||||
ci = commit
|
||||
|
||||
co = checkout
|
||||
st = status
|
||||
lg = log --graph --date=relative --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ad)%Creset'
|
||||
f = fetch
|
||||
|
||||
m = merge
|
||||
ma = merge --abort
|
||||
mc = merge --continue
|
||||
|
||||
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ad)%Creset' --abbrev-commit --decorate=full
|
||||
aliases = !git config --get-regexp alias | sed -re 's/alias\\.(\\S*)\\s(.*)$/\\1 = \\2/g'
|
||||
|
||||
oops = commit --amend --no-edit
|
||||
|
||||
p = push
|
||||
pfl = push --force-with-lease
|
||||
adda = add --a
|
||||
|
||||
rh = git reset --hard HEAD~1
|
||||
rs = git reset --soft HEAD~1
|
||||
uncommit = reset --soft HEAD~1
|
||||
untrack = rm --cache --
|
||||
unstage = reset --
|
||||
|
||||
rb = rebase
|
||||
rbc = rebase --continue
|
||||
rba = rebase --abort
|
||||
rbi = rebase --interactive origin/main
|
||||
|
||||
adda = add --a
|
||||
ci = commit
|
||||
cim = commit -m
|
||||
cima = commit -a -m
|
||||
|
||||
br = branch
|
||||
bra = branch -a
|
||||
brd = branch -d
|
||||
brdd = branch -D
|
||||
|
||||
[fetch]
|
||||
prune = true
|
||||
pruneTags = True
|
||||
cp = cherry-pick
|
||||
cpa = cherry-pick --abort
|
||||
cpc = cherry-pick --continue
|
||||
|
||||
s = stash
|
||||
sp = stash pop
|
||||
sa = stash apply
|
||||
sd = stash drop
|
||||
all = true
|
||||
|
||||
[pull]
|
||||
rebase = true
|
||||
[push]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue