A blog about the development of this package can be found here:: Building a CLI Tool in JavaScript: Streamlining Tasks With Simple Commands | Fajarwz.
Git Wizard is a command-line tool built with JavaScript and Node.js to streamline and automate common Git workflows. Whether you're a solo developer or working in a team, this tool simplifies repetitive Git tasks, reducing cognitive load and improving consistency in your development process.
With Git Wizard, you can easily initialize Git repositories, commit changes, create feature branches, and push your code—all with a few simple commands.
- Initialize a new Git repository: Automatically initialize a new Git repo in any project folder.
- Create feature branches: Quickly set up branches for new features, bug fixes, or experiments.
- Commit changes with ease: Easily commit changes with detailed messages.
- Push to remote: Push your local changes to a remote repository (GitHub, GitLab, etc.).
- Automated workflows: Simplify your development process by chaining commands together.
To install Git Wizard, you'll need to have Node.js (v14 or later) and npm installed on your machine.
You can install Git Wizard globally via npm:
npm install -g @fajarwz/git-wizard
This will allow you to run the tool from anywhere in your terminal using the git-wizard
or gw
command.
Once installed, you can run the following commands in your terminal:
git-wizard [command]
Or simply:
gw [command]
Initialize a new Git repository in the current directory.
gw init
Create a new feature branch for development.
gw new-feature
Commit staged changes with a message.
gw commit
Push changes to the remote repository.
gw push
npm test
We welcome contributions! If you'd like to help improve Git Wizard.
Git Wizard is licensed under the ISC License.