This is a mix of git, github, azure devops repos, and other workflow tips that help me work more quickly. Comments are welcome with any corrections or suggestions.
Works on Linux and macOS now 👏.
Many commands expect powershell, which runs on macOS and Linux as well.
brew install powershell to grab it and most of this will work without any further changes unless specified.
Tools I’ve Relied On
Everyone has there own brand of craziness with git aliases.
Here’s a few I’ve found helpful.
Azure DevOps Boards
This one will create an autocompleted ready to go pull request in azure repos using the last commit title and description. If you create your commit correctly for the last one, this will ensure no extra rework required to generate the title and body of the PR, as well as the cleaned up squash message on approval.
Install the Azure CLI and the
devops extension will be installed automatically upon using:
brew install az
You only live once…rebase and sync from origin, commit all your changes, and generate a commit message using PowerShell NameIt module.
Install module via:
Install-Module Nameit -Scope CurrentUser
Install gitversion via:
dotnet tool install --global GitVersion.Tool
For quickly ammending the last commit on your own private branch, you can combine these two commands to overwrite your branch with the latest changes instead of versioning.