...
Just put the following script in a file called git-pr in your ~/bin folder. If bin does not exist, create it and add it to your PATH var (depending on your shell environment, you have to add it to different files. for e.g. zsh you just need to add it to the .zshrc file and the existing PATH variable).
...