diff options
Diffstat (limited to 'conf')
-rw-r--r-- | conf/bashrc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/bashrc b/conf/bashrc index c3c4068..cf0a874 100644 --- a/conf/bashrc +++ b/conf/bashrc @@ -90,6 +90,7 @@ alias gitpull='git pull' alias gitsync='git pull; git push' alias gitsta='git stash' alias gitstap='git stash pop' +function gitpush1() { git log |egrep "^commit .*" |awk "{print \$2} /^commit $1$/ {exit}" |tac |while read c; do cmd="git push origin $c:`git rev-parse --abbrev-ref HEAD`"; echo $cmd; $($cmd) ||exit; done } alias dhk='sudo pkill -f dhcpcd' alias dhc='sudo dhcpcd' |