Simple alias for pushing up a change in git
gPush() {
git add .;
git commit -m "$1";
git pull --rebase;
git push origin "$2";
}
Put above functions in
git add .;
git commit -m "$1";
git pull --rebase;
git push origin "$2";
}
Put above functions in
.profile
or .bashrc