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

stash-to-branch

v1.1.0

Published

A cli tool for git, which allows you to stash and restore changes to a branch

Downloads

7

Readme

stash-to-branch

A cli tool for git, which allows stashing and restoring changes to a branch

Donate Build Status semantic-release Commitizen friendly JavaScript Style Guide

Usage

Installing

Install the tool globally

npm i stash-to-branch -g

Saving

Make some changes to your project, then stash them

stash-to-branch --save foo

After this, the original branch is clean and stashed-foo holds the changes, that you've made

Push the branch to origin

git push origin stashed-foo

Restoration

Make sure, that the stashed branch is available locally by pulling it from origin

git fetch

git checkout stashed-foo

git pull origin stashed-foo

Go to any branch, where you want to re-apply the changes from a stash and do a restore

stash-to-branch --restore foo

After this, the changes from stashed-foo are applied to your branch and you are ready to continue working with your code

Feel free to delete stashed-foo from local and remote, when you no longer need it

Arguments

--save or -s or --stash

Saves the local changes of the current branch to "stashed-". The "stashed-" prefix can be overriden by the --prefix argument.

--restore or -r or --apply

Applies the changes of "stashed-" to the current branch and prepares them for staging. No commit is being done on the current branch. The "stashed-" prefix can be overriden by the --prefix argument.

--list or -l

List all the available branches, which start with the default prefix (default = "stashed-"). Use the --prefix or -p argument to redefine the prefix

--prefix or -p

Change the default "stashed-" prefix for branch names to something else

Licence

MIT