Skip to content

Instantly share code, notes, and snippets.

@jnsahaj
jnsahaj / .zshrc
Created January 16, 2026 21:11
Peter Steinberger's Multiple Checkout aliases
# Create a new clone and branch for parallel development.
# Usage: ga <branch-name> [base-branch]
ga() {
if [[ -z "$1" ]]; then
echo "Usage: ga <branch-name> [base-branch]"
return 1
fi
local branch="$1"
local repo_name="$(basename "$PWD")"
local repo_url="$(git remote get-url origin)"