Skip to content
/ beam Public

Create a sep�arate branch and commit latest changes to development

Notifications You must be signed in to change notification settings

Hrafngud/beam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

🛸 beam

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.

✨ Features

  • 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 development branch via gh.

📦 Installation

  1. Clone or copy the beam.sh script 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
  2. Add an alias to your zsh configuration:

    echo 'alias beam="~/scripts/beam.sh"' >> ~/.zshrc
    source ~/.zshrc
  3. Ensure the GitHub CLI is installed and authenticated:

    gh auth login

🚀 Usage

From any Git repository, run:

beam

About

Create a sep�arate branch and commit latest changes to development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages