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"
|
||||
d = diff
|
||||
co = checkout
|
||||
ci = commit -m
|
||||
ca = commit -am
|
||||
ci = commit
|
||||
ca = commit -a
|
||||
ps = "!git push origin $(git rev-parse --abbrev-ref HEAD)"
|
||||
pl = "!git pull origin $(git rev-parse --abbrev-ref HEAD)"
|
||||
st = status
|
||||
@ -36,6 +36,10 @@
|
||||
type = cat-file -t
|
||||
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"
|
||||
unstage = 'reset HEAD --'
|
||||
last = 'log -1 HEAD'
|
||||
|
||||
|
||||
|
||||
# edit conflicted file on merge
|
||||
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; vim `f`"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user