Skip to content

Instantly share code, notes, and snippets.

@omgmog
Created April 19, 2012 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omgmog/2421164 to your computer and use it in GitHub Desktop.
Save omgmog/2421164 to your computer and use it in GitHub Desktop.
gatt - git all the things!
# place this in your ~/.bashrc
# restart terminal, or run 'source ~/.bashrc'
# use `gatt` command like a bowss
# ???
# Profit!
# name/idea/demand from @tmayr
# gatt "branch" "message"
# or
# gatt "message"
gatt(){
printf "\n\033[32mGIT ALL THE THINGS!\033[00m\n"
if [[ -n "${2}" ]]
then
git add . && git commit -m "${1}" && git pull && git push
else
git add . && git commit -m "${2}" && git pull origin "${1}" && git push origin "${1}"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment