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

@jlegrone/git-config

v1.6.0

Published

Shared git configuration

Downloads

14

Readme

@jlegrone/git-config

npm version Build Status Known Vulnerabilities

Commitizen friendly semantic-release

Install

$ npm install --global @jlegrone/git-config

Uninstall

$ npm uninstall --global @jlegrone/git-config

Non-NPM Install

$ git clone https://github.com/jlegrone/git-config.git
$ cd git-config
$ git config --global --add include.path "$PWD/src/jlegrone.gitconfig"

Usage

To view the source for an alias, type

$ git help <alias>

Available Aliases

git aliases

List all available git aliases.

git branches

List all remote branches, ordered by last commit date.

git contains <commit-hash>

List all local and remote branches containing a given commit hash.

$ git contains 27395436382cd897fd957635bd42cf78788f11b1
* feature/add-docs
  master
  remotes/origin/master

git up

Rebase the current branch onto origin/develop.

Rebases onto origin/master if no develop branch is present.

Caution: This command rewrites history.

git start <feature>

Checkout a new branch based on origin/develop, prefixed with feature.

Uses origin/master if no develop branch is present.

$ git start user-service
# now on branch feature/user-service

git hotfix <bug>

Checkout a new branch based origin/master, prefixed with hotfix.

Requires a master branch.

$ git hotfix missing-translations
# now on branch hotfix/missing-translations

git wip

Create a "work in progress" commit with all (staged and unstaged) changes.

git undo

Undo the latest commit. The contents of that commit will remain as staged changes.

git amend

Amend the latest commit to include all (staged and unstaged) changes.

Caution: This command rewrites history.

git fixup <commit-hash>

Add staged changes to the specified commit.

Caution: This command rewrites history, and may introduce conflicts during rebase.

$ git add .
$ git fixup 27395436382cd897fd957635bd42cf78788f11b1

git reword <commit-hash>

Edit the commit message for the specified commit.

Caution: This command rewrites history.

$ git reword 27395436382cd897fd957635bd42cf78788f11b1

git edit

Perform an interactive rebase starting from the specified commit.

Accepts all options that can be passed to git-rebase.

Caution: This command rewrites history, and may introduce conflicts during rebase.

$ git edit 27395436382cd897fd957635bd42cf78788f11b1

git publish

Push the current branch to the remote origin, and set it to track the upstream branch.

git unpublish

Remove the current branch from the remote origin.

git pushf

Force push to the upstream branch, but receive a warning if new commits were added to the remote since your last checkout.

For more information, see http://weiqingtoh.github.io/force-with-lease/.

Accepts all options that can be passed to git-push.

git cleanup

Delete local branches that have been fully merged into master or develop.

git cb <branch-name>

Checkout a new branch. Shorthand for git checkout -b <branch-name>.

Accepts all options that can be passed to git-checkout.

$ git cb test/my-proof-of-concept
# now on branch test/my-proof-of-concept

git l

Show an abridged git log output, with one line per commit.

Accepts all options that can be passed to git-log.

$ git l
6b1768a 2017-08-09 (tag: v1.3.3) Merge pull request #9 from jlegrone/feature/re-enable-release [GitHub]
1b0b519 2017-08-09 chore(travis): install dev dependencies again in post_success hook [Jacob LeGrone]
4b5cb73 2017-08-09 Merge pull request #8 from jlegrone/feature/fix-missing-dep [GitHub]
e5695bc 2017-08-09 fix(install): update to working validate-git-version [Jacob LeGrone]
3fab789 2017-08-09 test(travis): install production dependencies only [Jacob LeGrone]
...

git s

Show an abridged git status output which only includes files changed.

Accepts all options that can be passed to git-status.

$ git s
M  README.md
 M commitizen.config.js
 M src/jlegrone.gitconfig