Provides a collection of helper functionality that I used every day
# install cli
go install github.com/ahodieb/git-helpers
# setup git aliases for a quicker flow
git-helpers install-git-aliases
Checkout the main branch.
Many projects have migrated from master
to main
as the main branch name, so this switch to whatever is the main
branch in the current repository
git-helpers checkout-main
# with git aliases setup
git main
Rebase all the other branches on top of the main
branch.
When I work on multiple feature branches locally I like to rebase all of them onto main frequently.
git-helpers rebase-all
# with git aliases setup
git rebase-all