@sidx1scr-apps/gittooljs
gittooljs
Making Git simple.
gittooljs is a lightweight, zero-dependency Node.js CLI tool that beautifully simplifies your Git workflow. It is a JavaScript port of the original Go-based gittool.
Enjoy a gorgeous, true-color UI, automated GitHub integration, and streamlined commands that save you time!
Looking for the Go version? If you prefer the original, compiled Go version of
gittool, you can install it via Homebrew:brew tap sidx1-scratch/tap brew trust sidx1-scratch/tap brew install sidx1-scratch/gittool
Installation
Install globally via npm:
npm install -g @sidx1scr-apps/gittooljs
Usage
Run the tool by simply typing gittool in your terminal.
gittool <command>
Available Commands
gittool initInitialize a brand new local repository and switch to amainbranch automatically.gittool repo add <url>Link a remote GitHub/GitLab repo. It automatically configures SSH connections (converting HTTPS URLs seamlessly).gittool repo new [name]Create a new private GitHub repository, link it, and push your code instantly. (Requires theghCLI)gittool statusGet a beautiful, color-coded overview of your file changes, branch name, and sync status with the remote repository.gittool branchesDisplay a visually pleasing list of all local and remote branches, highlighting the one you are currently on.gittool save [-m]Automatically stage all changes, generate a formatted commit message (with timestamp and changed files), and push tomain. Use the-mflag to open your$EDITORand write a custom message on top of the auto-generated one.gittool syncPerform a safegit pull --rebasefollowed by agit pushto keep everything perfectly in sync.gittool logView a beautifully formatted, compact commit log with relative timestamps and authors.gittool prInstantly create a Pull Request for your current branch with a single command. (Requires theghCLI)gittool oopsForgot a file? Justgit addit and run this command to seamlessly amend your last commit without needing to edit the message.gittool undoA safe soft-reset that undoes your last commit but keeps all your file changes staged and ready to be re-committed.
Features
- Zero dependencies! Everything is built using standard Node.js libraries.
- Beautiful UI: Custom true-color output, animated spinners, and clean ASCII boxes.
- Automatic SSH Configuration: Prompts and auto-translates URLs to keep your auth simple.
- GitHub CLI Integration: Optional commands like
repo newandprleverage the officialghCLI for powerful automation.