Skip to content

Instantly share code, notes, and snippets.

@inlife
Created April 18, 2016 13:59
Show Gist options
  • Save inlife/b57a79f80a5a307b8a99dd894747f7af to your computer and use it in GitHub Desktop.
Save inlife/b57a79f80a5a307b8a99dd894747f7af to your computer and use it in GitHub Desktop.
small aliases for git
# git
alias gitp="git push origin master"
alias gitf="git pull origin master"
alias gits="git status"
function gita {
git add .
if [ -z "$1" ]; then
echo -n "Enter commit message: "
read msg
git commit -m $msg
else
git commit -m $1
fi
}
function gitap {
gita $1 && gitp;
}
alias gitc="gita"
alias gitcp="gitap"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment