gitbuddy

The best git friend you've ever had.

Usage no npm install needed!

<script type="module">
  import gitbuddy from 'https://cdn.skypack.dev/gitbuddy';
</script>

README

GitBuddy - Your Git Best Friend

GitBuddy is an interactive CLI that provides simple prompts for common git commands. Prompts make it easy to stage a select groups of files, to help build good git habits, or break bad ones. Shorthand options allow you to easily skip through steps. And it returns clean, semantic responses throughout the process.

Installation

To get started, run:

npm install -g gitbuddy

Commands

For the full prompt process:

gitbuddy

Step 1/3: Lists all available modified and untracked files to select from. Select one or multiple.

Step 2/3: Simply type your commit message.

Step 3/3: Confirm whether you want to push your changes to your remote repository or not. GitBuddy even identifies and pushes upstream if your branch doesn't exist in the remote repository yet!

Options/Flags

Add All Flag

To stage all files (and skip to the commit message prompt), use the -a or -A flag:

gitbuddy -a

Auto Push Flag

To push to your remote repository by default (skipping the last prompt), use the -p flag:

gitbuddy -p

Commit Message Option

To add your commit message (and skip the commit message prompt):

gitbuddy "Your commit message"

Mix-and-Match Flags/Options

Mix and match flags/options to initiate only the prompt(s) you want:

i.e. Add your commit message and -p, and you will only be prompted to select files to stage. GitBuddy does the rest

gitbuddy -p "Your commit message"

All-in-One Command

Chain all the options together (in no particular order) to add, commit, and push, all in just one command:

gitbuddy -a -p "Your commit message"

Coming Soon

  1. Easy branch management