Created
April 18, 2016 13:59
-
-
Save inlife/b57a79f80a5a307b8a99dd894747f7af to your computer and use it in GitHub Desktop.
small aliases for git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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