Last active
July 7, 2019 04:35
-
-
Save MahbbRah/344f363cacabbfe305f355c224a70f7e to your computer and use it in GitHub Desktop.
merging git all commands in a bash function to use as a command
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
# to use this function as a bash command add this to your bash_profile ~ root directory in windows and then reload bash profile | |
# and you're ready to go simply type: gitPush "commit message that you want to add";; | |
gitPush() { | |
git add . | |
#Here "$1" as the arugment that'll collect the mnessage for commit | |
git commit -am "$1" | |
git push -u origin master | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment