Skip to content

Instantly share code, notes, and snippets.

@MahbbRah
Last active July 7, 2019 04:35
Show Gist options
  • Save MahbbRah/344f363cacabbfe305f355c224a70f7e to your computer and use it in GitHub Desktop.
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
# 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