Just add this function to your .bash_profile or .bashrc file and you'll be able to run it!
gitp
will publish changes to current branch with default commit
gitp "added new feature"
will publish changes to current branch with specified commit
Hope it helps!