npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

gitty-cli

v1.0.2

Published

Git command shortcuts with visual feedback

Readme

Gitty

Git command shortcuts with visual feedback for the command line.

Features

  • 🚀 Simple Shortcuts: Use gt p instead of git push
  • 🌈 Visual Feedback: Colorized output for easy reading
  • 🔒 Safety Checks: Confirmations for potentially destructive operations
  • 🧠 Smart Defaults: Common patterns simplified to single commands

Installation

npm install -g gitty-cli

Usage

Basic Commands

gt a               # git add .
gt c "fix bug"     # git commit -m "fix bug"
gt p               # git push
gt s               # git status

Command Reference

📦 Basic Commands

| Command | Git Equivalent | Description | |---------------------|----------------------------|------------------------| | gt a | git add . | Add all changes | | gt aa [file] | git add [file] | Add specific file | | gt c "message" | git commit -m "message" | Commit with message | | gt ca "message" | git commit -am "message" | Add all and commit | | gt s | git status | Check status |


🌿 Branch Commands

| Command | Git Equivalent | Description | |---------------------|-------------------------------|----------------------------------| | gt b | git branch | List branches | | gt co [branch] | git checkout [branch] | Switch branch | | gt cb [branch] | git checkout -b [branch] | Create and switch to new branch | | gt bd [branch] | git branch -d [branch] | Delete a branch | | gt bD [branch] | git branch -D [branch] | Force delete branch |


🌍 Remote Commands

| Command | Git Equivalent | Description | |------------------------------|----------------------------------------|----------------------------------| | gt p | git push | Push to current branch | | gt po [branch] | git push origin [branch] | Push to specific branch | | gt pom | git push origin main | Push to origin main | | gt pl | git pull | Pull from current branch | | gt plom | git pull origin main | Pull from origin main | | gt ra [name] [url] | git remote add [name] [url] | Add a remote | | gt rao [url] | git remote add origin [url] | Add origin remote |


⚙️ Config Commands

| Command | Git Equivalent | Description | |----------------|----------------------------------|--------------------------------------| | gt cfpl | git config pull.rebase false | Configure pull to use merge | | gt cfpr | git config pull.rebase true | Configure pull to use rebase | | gt cfpf | git config pull.ff only | Configure pull to fast-forward only |


♻️ Reset Commands

| Command | Git Equivalent | Description | |---------------------|----------------------------------|--------------------------------------| | gt rs [file] | git reset [file] | Unstage files | | gt rsh [commit] | git reset --hard [commit] | Hard reset to commit | | gt rss | git reset --soft HEAD~1 | Undo last commit (keep changes) | | gt rsh | git reset --hard | Discard all local changes |


🔍 Log & Diff Commands

| Command | Git Equivalent | Description | |------------------|------------------------------------------|-------------------------------| | gt l | git log --oneline -n 10 | View recent commits | | gt lg | git log --graph --oneline --all | View all commits as a graph | | gt d | git diff | View unstaged changes | | gt dc | git diff --cached | View staged changes | | gt df [file] | git diff [file] | View changes in specific file |


🧪 Stash Commands

| Command | Git Equivalent | Description | |-----------|--------------------|---------------------------| | gt sh | git stash | Stash current changes | | gt sl | git stash list | List all stashes | | gt sp | git stash pop | Apply latest stash | | gt sa | git stash apply | Apply without removing | | gt sd | git stash drop | Drop latest stash |


🚨 Rebase & Merge Commands

| Command | Git Equivalent | Description | |--------------|----------------------------|------------------------------------| | gt m [br] | git merge [branch] | Merge branch into current | | gt r [br] | git rebase [branch] | Rebase current onto branch | | gt rab | git rebase --abort | Abort rebase | | gt rc | git rebase --continue | Continue after conflict resolution |


🗑️ Delete & Clean Commands

| Command | Git Equivalent | Description | |----------------|---------------------------|-------------------------------------| | gt cl | git clean -fd | Remove untracked files and folders |

Safety Features

For potentially dangerous operations like force push or undoing commits, Gitty will ask for confirmation:

$ gt pf
Executing: git push --force-with-lease
? This will force push to remote. Continue? (y/N)

Examples

Quick Commit and Push

# Add all files, commit and push in two commands
gt ca "implement login feature"
gt p

Branch Management

# Create a new feature branch
gt cb feature/user-profile

# Check status
gt s

# Switch back to main
gt co main

Undo Last Commit

# Oops, need to undo that last commit
gt u

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch: gt co -b feature/my-new-feature
  3. Commit your changes: gt ca -am 'Add some feature'
  4. Push to the branch: gt p origin feature/my-new-feature
  5. Submit a pull request

License

MIT