gassist
v1.3.1
Published
A global npm package to easily manage git repositories, branches, and workflows interactively
Downloads
221
Maintainers
Readme
gassist
A CLI tool for managing git repositories, branches, and workflows interactively with a user-friendly interface.
Install
From npm (Recommended)
npm install -g gassistLinux users (one-time setup):
If you get permission errors, configure npm once:
mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrcAfter this one-time setup, you can use npm install -g for any package without sudo or permission issues.
From source
For development or to install from source:
git clone https://github.com/aikengunay/gassist.git
cd gassist
npm install -g .The -g flag installs the package globally, making gassist available from any directory in your terminal.
Usage
gassistRun gassist from within any git repository directory. The tool will show your current status and guide you through git workflows and branch management.
Examples:
# Interactive git workflow management
gassist
# Show version
gassist --version
# Show help
gassist --helpFeatures
- View repository status (current branch, ahead/behind commits, uncommitted changes)
- Fetch latest changes from remote
- Pull latest changes for current branch
- Interactive branch switching with local/remote indicators
- Create new branches with conventional naming (feature/, fix/, chore/, docs/, refactor/, test/, style/, perf/, hotfix/)
- Merge branches into main/master with conflict detection
- Delete branches (local and remote) after merging
- Automatic branch creation from remote if needed
- Stash uncommitted changes before switching/merging (optional)
- Branch name validation (kebab-case format)
- Colored output for better UX
- Cross-platform support (Windows, macOS, Linux)
Requirements
- Node.js 14 or higher
- Git
- npm
Platform Support
Windows
Full support via Git for Windows
macOS
Full support
Linux
Full support (for npm global installs, configure npm prefix to avoid permission errors - see Install section)
Uninstall
npm uninstall -g gassistContributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
MIT
