#!/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/$var
git一键推送到gerrit
猜你喜欢
转载自blog.51cto.com/12165865/2408033
今日推荐
周排行