1.2.4 • Published 2 years ago
maq-git-buddy v1.2.4
Git Buddy
Installation
npm -g maq-git-buddyFeatures
Action: Commit And Push
-m: The commit message for the push operation.-e: An optional emoji for the commit message.-t: The type of the resulting commit. (Based on Commit Types)--amend: A flag indicating whether to amend the previous commit.- Example:
npx git-buddy push -t feat -m "Added Feature" --amend - Example:
npx git-buddy push -t fix -m "Fixed Bug"
Action: Commit only
- Example:
npx git-buddy commit -t feat -m "Message"
- Example:
Action: squash (Combine commits)
n: The number of commits to squash (default is 1).- Example
npx git-buddy squash -n 4 -t feat -m "Squash Commits"
Action: pull
- Example:
npx git-buddy pull
- Example:
Action: push_origin
--f: A flag indicating whether to force-push to the origin.- Example:
npx git-buddy push_origin
Action: reset (Completely Deleting commits from remote)
n: The number of commits to reset (default is 1).- Example:
npx git-buddy reset -n 5
Commit-Types
| Commit Type | Title | Description | Emoji |
|---|---|---|---|
| feat | Feature | A new feature | ✨ |
| fix | Bug Fixes | A bug Fix | 🐛 |
| docs | Documentation | Documentation only changes | 📚 |
| style | Styles | Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) | 💎 |
| refactor | Code Refactoring | A code change that neither fixes a bug nor adds a feature | 📦 |
| perf | Performance Improvements | A code change that improves performance | 🚀 |
| test | Tests | Adding missing tests or correcting existing tests | 🚨 |
| build | Builds | Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) | 🛠️ |
| ci | Continuous Integrations | Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs) | ⚙️ |
| chore | Chores | Other changes that don't modify src or test files | ♻️ |
| revert | Reverts | Reverts a previous commit | 🗑️ |