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.
To get started, run:
npm install -g gitbuddy
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!
To stage all files (and skip to the commit message prompt), use the -a
or -A
flag:
gitbuddy -a
To push to your remote repository by default (skipping the last prompt), use the -p
flag:
gitbuddy -p
To add your commit message (and skip the commit message prompt):
gitbuddy "Your commit message"
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"
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"