beam is a simple, interactive shell script for quickly creating Git branches, committing changes, and opening pull requests via the GitHub CLI — all in one smooth command.
- Checks if you are inside a Git repository before running.
- Interactive prompts for:
- Branch name
- Commit message
- PR title
- PR description
- Creates a new branch and commits changes.
- Pushes the branch to
origin. - Opens a pull request targeting the
developmentbranch viagh.
-
Clone or copy the
beam.shscript to~/scripts:mkdir -p ~/scripts nano ~/scripts/beam.sh # Paste the script content here, save and exit (CTRL+O, CTRL+X) chmod +x ~/scripts/beam.sh
-
Add an alias to your
zshconfiguration:echo 'alias beam="~/scripts/beam.sh"' >> ~/.zshrc source ~/.zshrc
-
Ensure the GitHub CLI is installed and authenticated:
gh auth login
From any Git repository, run:
beam