git一鍵推送到gerrit

#!/bin/bash
function branch {
br=git branch | grep "*"
echo ${br/* /}
}
var=$(branch)
echo git add .
echo git commit -m $1
echo git fetch && git rebase
echo git push origin HEAD:refs/for/$vargit

相關文章
相關標籤/搜索