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