edit(gitconfig): edit aliases ca ci: rm -m param,
add aliases: stage, last
This commit is contained in:
parent
c394296bb5
commit
3440cd624c
@ -20,8 +20,8 @@
|
|||||||
a = "!git status --short | peco | awk '{print $2}' | xargs git add"
|
a = "!git status --short | peco | awk '{print $2}' | xargs git add"
|
||||||
d = diff
|
d = diff
|
||||||
co = checkout
|
co = checkout
|
||||||
ci = commit -m
|
ci = commit
|
||||||
ca = commit -am
|
ca = commit -a
|
||||||
ps = "!git push origin $(git rev-parse --abbrev-ref HEAD)"
|
ps = "!git push origin $(git rev-parse --abbrev-ref HEAD)"
|
||||||
pl = "!git pull origin $(git rev-parse --abbrev-ref HEAD)"
|
pl = "!git pull origin $(git rev-parse --abbrev-ref HEAD)"
|
||||||
st = status
|
st = status
|
||||||
@ -36,6 +36,10 @@
|
|||||||
type = cat-file -t
|
type = cat-file -t
|
||||||
dump = cat-file -p
|
dump = cat-file -p
|
||||||
find = "!f() { git log --pretty=format:\"%h %cd [%cn] %s%d\" --date=relative -S'pretty' -S\"$@\" | peco | awk '{print $1}' | xargs -I {} git diff {}^ {}; }; f"
|
find = "!f() { git log --pretty=format:\"%h %cd [%cn] %s%d\" --date=relative -S'pretty' -S\"$@\" | peco | awk '{print $1}' | xargs -I {} git diff {}^ {}; }; f"
|
||||||
|
unstage = 'reset HEAD --'
|
||||||
|
last = 'log -1 HEAD'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# edit conflicted file on merge
|
# edit conflicted file on merge
|
||||||
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; vim `f`"
|
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; vim `f`"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user