diff options
-rw-r--r-- | conf/bashrc-laurent-public | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/bashrc-laurent-public b/conf/bashrc-laurent-public index 53a5561..434d122 100644 --- a/conf/bashrc-laurent-public +++ b/conf/bashrc-laurent-public @@ -94,6 +94,7 @@ alias gitsta='git stash' alias gitstap='git stash pop' # Pushes commits 1by1. Only works if noone has commited before you. Good if you do dev in your own branch. function gitpush1_branch() { branch=`git rev-parse --abbrev-ref HEAD`; git log origin/$branch..$branch |egrep "^commit .*" |awk "{print \$2} /^commit $1$/ {exit}" |tac |while read c; do cmd="git push origin $c:$branch"; echo $cmd; $($cmd) ||exit; done } +alias gitunpushed='export GIT_CURRENT_BRANCH=$(git name-rev --name-only HEAD) && git log origin/$GIT_CURRENT_BRANCH..$GIT_CURRENT_BRANCH' alias dhk='sudo pkill -f dhcpcd' alias dhc='sudo dhcpcd' |