Gitopus is an open-source command-line tool that simplifies your Git commit process by providing an interactive interface for selecting conventional commit prefixes.
- Interactive menu for selecting commit prefixes.
- Prompts for detailed commit messages.
- Streamlined process for creating conventional commits.
- Enhances code clarity and collaboration within teams.
To install gitopus, you need to have Node.js and npm (Node Package Manager) installed on your machine.
-
Install Node.js: If you haven't already, download and install Node.js from nodejs.org.
-
Install gitopus globally: Open your terminal or command prompt and run the following command:
npm install -g gitopus
Once gitopus is installed, you can use it to create Git commit messages after you have staged your changes with git add:
-
Stage your changes in the Git repository:
git add . -
Run the
gitopuscommand:gitopus
or
gitoct
or
gt
-
You will see an interactive menu with available commit prefixes. Use the arrow keys to select a prefix and press Enter.
-
After selecting a prefix, enter your commit message when prompted.
-
Your commit will be created using the selected prefix and message.
Here's an example of how to use gitopus:
cd /path/to/your/repo
git add . # Stage your changes first
gt # Run the gitopus command-
Select a prefix:
Select the commit prefix: feat: A new feature or functionality fix: A bug fix docs: Documentation-only changes ... -
Enter your commit message:
Enter the commit message: Add user registration page
This will create a commit like:
git commit -m "feat: Add user registration page"We welcome contributions to Gitopus! If you'd like to contribute, follow the steps below:
Visit the Gitopus GitHub repository and click the Fork button to create your own copy of the repository.
Clone the repository to your local machine using the following command:
git clone https://github.com/YOUR_GITHUB_USERNAME/gitopus.gitCreate a new branch for your feature or bug fix:
git checkout -b feature-or-bug-fix-nameMake your changes and ensure everything is working correctly.
After making changes, commit them using Gitopus:
git add .
gt # Run gitopus to commit with a prefixAlternatively, commit manually:
git commit -m "feat: Add feature or bug fix"Push your changes to your forked repository:
git push origin feature-or-bug-fix-nameGo to the original Gitopus repository and submit a pull request with a description of your changes.
Thank you for contributing to Gitopus!
For more information, check out the Gitopus GitHub repository.
Team Octane!
