Skip to content

Instantly share code, notes, and snippets.

@actuallymentor
Created December 15, 2015 06:01
Show Gist options
  • Save actuallymentor/edc5decbd850bbda3dc1 to your computer and use it in GitHub Desktop.
Save actuallymentor/edc5decbd850bbda3dc1 to your computer and use it in GitHub Desktop.
Creating a bash function that takes parameters, and using it .bashrc_profile style
#This function when added to ~/.bashrc_profile will allow you to use
#the command 'push "Commit message"' to lazily push your repo to your git server
push() {
#Add commit and push
git add *
git commit -a -m "$1"
git push
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment