#!/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
转载于:https://blog.51cto.com/12165865/2408033
#!/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
转载于:https://blog.51cto.com/12165865/2408033