Categorygithub.com/ahodieb/git-helpers
repositorypackage
0.0.0-20230417165947-e5f8d4bb8484
Repository: https://github.com/ahodieb/git-helpers.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

git-helpers

Provides a collection of helper functionality that I used every day

Installation

# install cli
go install github.com/ahodieb/git-helpers

# setup git aliases for a quicker flow
git-helpers install-git-aliases

Helpers

checkout-main

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

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