From 6e360fc30879740173cedd3e00fde20e6d69c109 Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Wed, 6 Mar 2013 01:00:35 +0100 Subject: conf/bashrc: add gitpush1 to push commits one by one usefull for github service email on commit, that sends only one email per push (maybe this is configurable ? still usefull if you don't have control over it) --- conf/bashrc | 1 + 1 file changed, 1 insertion(+) (limited to 'conf') 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' -- cgit v1.2.3-59-g8ed1b