New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gitx-cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitx-cli

gitx-cli: A global Git helper CLI with git emoji commit shortcuts and git aliases. Built with commander.js and chalk.

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

gitx-cli

A global Git helper CLI built with commander.js and chalk.

It provides:

  • Commit shortcuts with gitmoji
  • Amend support for editing last commits
  • Git aliases for frequent commands
  • Emoji and alias reference tables in colorful output

Installation

Install globally from npm (once published)

npm install -g gitx-cli

This makes the gx command available system-wide.

Usage

Commit Shortcuts

Each commit type has an associated emoji + label:

gx feature "add login form"
gx fix "resolved signup crash"
gx docs "update API documentation"
gx ui "improve dashboard UI"
gx perf "optimize query execution"

Options:

  • -a, --all → Run git add . before committing
  • -A, --amend → Amend last commit instead of creating a new one

Example:

gx fix -a "fixed null pointer issue"
gx feature -a -A "add OTP validation"

Amend Last Commit

Rename/relabel your last commit with a new type and message:

gx amend fix "better error handling"
gx amend docs "typo fix in README"

Emoji Reference

See all supported commit types, emojis, and meanings:

gx emoji-list
EmojiTypeDescription
🎉INITInitial project setup
FEATURENew feature or enhancement
🐛FIXBug fix
🚑HOTFIXUrgent production fix
🔥DELETERemove code/files
🔨REFACTORCode restructure (no behavior change)
📚DOCSDocumentation updates
💄STYLEFormatting, styles, UI minor changes
🎨UIUI/UX improvements
TESTAdd/update tests
⚡️PERFPerformance improvements
🚀DEPLOYDeployment / CI changes
⬆️UPGRADEUpgrade dependencies
🔧CONFIGConfig or environment changes
👷CICI pipeline changes
🔒SECURITYSecurity related changes
ROLLBACKRollback or revert
🔖RELEASERelease/Version tag
🔍SEOSearch engine optimization
♿️ACCESSIBILITYAccessibility improvements
🔀MERGEMerge branches
🗑️CHORERoutine chores/cleanup

Git Aliases

Run frequent Git commands via short aliases:

gx a <alias> [args...]

Show all aliases:

gx a list

Available Aliases

AliasCommandDescription
gagit add .Stage all changes (quickly stage everything).
gsgit statusShow working tree status.
gmgit commitCreate a commit with staged changes.
gpgit pushPush current branch to remote.
gplgit pullPull latest changes from remote.
gcogit checkoutSwitch branches or restore files.
gbgit branchList, create, or delete local branches.
gcmgit checkout mainQuickly switch to main.
gpsgit push origin mainPush main to remote.
gplmgit pull origin mainPull latest changes from main.
gldgit log --oneline --graph --decorate --allPretty git log as a decorated graph.
reset-hardgit reset --hard HEAD~1Rollback last commit and discard changes permanently.
reset-softgit reset --soft HEAD~1Undo last commit but keep changes staged.
delete-local-branchgit branch -d <branch>Delete a local branch.
delete-remote-branchgit push origin --delete <branch>Delete a remote branch (destructive).
stashgit stashSave uncommitted changes temporarily.
stash-popgit stash popReapply most recent stashed changes.
clsclearClear terminal screen.

Examples:

gx a ga
gx a gs
gx a gco feature-branch
gx a delete-local-branch old-branch
gx a list

Examples

gx feature "added login form"
gx fix -a "resolved crash on signup"
gx fix -a --amend "tweak message"
gx amend fix "updated commit message"
gx a ga
gx a gs
gx emoji-list
gx a list

Why Use gitx-cli?

  • Faster commits with standardized messages (great for teams).
  • Gitmoji support makes commit logs more visual.
  • Built-in git aliases save keystrokes.
  • Colorful CLI output via chalk.
  • Easy to extend - just add more commit types or aliases in code.

Contributing

  • Fork the repo
  • Create a feature branch
  • Add/update commit shortcuts or aliases
  • Submit a PR

License

MIT License 2025 Shahid Khan

Keywords

git

FAQs

Package last updated on 10 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts