Installation
Choose your preferred installation method below.
Homebrew (Recommended)
Section titled “Homebrew (Recommended)”The easiest way to install and keep gitswitch up-to-date:
brew install aksisonline/tap/gitswitchUpdates are automatic with:
brew upgradeCurl (One-liner)
Section titled “Curl (One-liner)”Works on macOS and Linux:
curl -fsSL https://raw.githubusercontent.com/aksisonline/gitswitch/main/.github/install.sh | bashBuild from Source
Section titled “Build from Source”Requires Go 1.21 or later:
git clone https://github.com/aksisonline/gitswitchcd gitswitchmake installGo Install
Section titled “Go Install”go install github.com/aksisonline/gitswitch@latestVerify Installation
Section titled “Verify Installation”Check that gitswitch is installed:
gitswitch versionThis will show your version and check for available updates.