Created
December 15, 2015 06:01
-
-
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 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
#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