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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@xniva/git-shortcuts

v1.7.1

Published

Shortcuts for the commonly used git commands

Downloads

18

Readme

Git Shortcuts

@xniva/git-shortcuts is a cli tool which provides shortcuts for the commanly used git commands.

Example:

use gl for the git log command to view the recent commit

Installation:

Install it globally using the command

npm i -g @xniva/git-shortcuts

List of available commands:

| shortcut command | actual git command | action | | ---------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | gl | git log | Show the list of commits for the current branch | | gs | git status | Show the status of the changes | | gb | git branch --show-current | Show the name of the current branch | | gcm | git checkout master | Swicth to the master branch | | gf | git fetch | Fetch from the remote | | gpm | git pull origin master | Pull the changes from the remote master branch | | gmm | git merge origin master | Merge the changes from the remote master to the current branch | | gph | git push origin HEAD | Push the current branch and its changes to remote and open the new PR url in browser | | gsr | git reset --soft HEAD~1 | Remove the last commit and preserve the changes | | ghr | git reset --hard HEAD~1 | Completely delete the changes of the last commit | | glp | git show-branch --no-name HEAD | Print the last commit message | | glc | git show-branch --no-name HEAD | Copy and Print the last commit message | | gsf | gcm && gpm && git merge --no-commit --no-ff origin/${featureBranch} | List the changes of a feature branch w.r.t master - for review | | gma | git merge --abort | Abort the merge | | grb | git reset --${hardOrSoft} origin/$(git rev-parse --abbrev-ref HEAD) | Reset the current branch to its remote equivalent | | gphf | git push origin HEAD --force | Force push the current branch | | gc | git commit -m ${commitMessage} | Commit the staged files with the give message | | gcpm | gcm && gpm | Checkout master and pull | | gca | git commit -am ${commitMessage} | Commit all the files with the give message |

Master branch name is configurable:

Add a .env file in the directory where you are using the shortcuts and add the following line to set the master branch name

MASTER_BRANCH_NAME=main // or any other branch name