Creating a PR from the command line

Creating a PR from the command line
Photo by Jen Theodore / Unsplash

I use the command line to create GIT branches, add files and then create a commit but to create the PR I have to switch to a browser, navigate to the correct URL and create the PR via the UI (this is using Azure DevOps).

So after a bit of searching around I found a few people suggested using a git alias to automatically open the browser with the PR ready to create.

I use the windows terminal and already have several home-grown functions so I wrote a version of the git alias in Powershell.