gitcmmt
is a lightweight and user-friendly CLI tool designed to simplify and streamline your Git workflow. It automates common Git tasks like staging, committing, and pushing changes, while allowing flexibility through configurable options.
- Automate Git Commands:
- Automatically run
git add .
to stage changes. - Commit changes with customizable messages.
- Push to the desired remote and branch.
- Automatically run
- Customizable Flags:
- Skip specific steps (
--skip-add
,--skip-push
). - Customize the branch (
--branch
) and remote (--remote
). - Specify commit messages manually (
--msg
) or use quick templates (--dbg
for "Bugs fixed").
- Skip specific steps (
- Interactive Push Confirmation:
- Ask for confirmation before pushing changes.
- Auto-Push Option:
- Automatically push changes with the
--auto-push
flag.
- Automatically push changes with the
Install the package globally via npm
:
npm install -g gitcmmt
Or run directly using npx
:
npx gitcmmt
Run the tool to stage, commit, and optionally push changes:
npx gitcmmt
Option | Description | Default |
---|---|---|
--skip-add |
Skip the git add . step. |
false |
--skip-push |
Skip the git push step. |
false |
--branch |
Specify the branch to push changes to. | main |
--remote |
Specify the remote repository. | origin |
--msg |
Manually set a commit message. | Auto-generated |
--dbg |
Use a quick commit message: "Bugs fixed". | false |
--auto-push |
Automatically push changes without asking for confirmation. | false |
Run the tool without --auto-push
to get a prompt asking whether to push changes:
npx gitcmmt
npx gitcmmt --msg "Updated README" --auto-push
npx gitcmmt --skip-push
npx gitcmmt --remote upstream --branch develop
npx gitcmmt --dbg
- Stage Changes: Automatically stages all changes unless
--skip-add
is used. - Commit Changes: Commits with a message provided by
--msg
,--dbg
, or an auto-generated summary of changes. - Push Changes: Pushes changes to the remote and branch specified, with an optional confirmation step unless
--auto-push
is enabled.
We welcome contributions! If you have ideas for improvement or find bugs, feel free to open an issue or submit a pull request.
If you encounter issues, please open an issue on GitHub.
Happy coding! 🚀