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

git-bd

v1.0.2

Published

A new working directory for each git branch.

Downloads

7

Readme

Description

git bd mimics git branch in usage but git bd creates a new working directory for each branch you create. The combination of a branch and working directory is what I refer to as a branchdir. Branchdirs allow you to have multiple branches checked out at once.

Installation

  1. Put git-bd and git-new-workdir in your PATH and ensure it is executable.

  2. Source bd.bashrc in your ~/.bashrc to add Bash completion for git bd and to add a Bash function, bd, to switch between branchdirs.

  3. To setup a repo to use git bd --init.

    For example:

     mkdir git-bd
     git clone https://github.com/nnutter/git-bd.git master
     cd master
     git bd --init

Caveats

Remember, almost everything that happens in Git can be undone. Don't panic!

  • If you mix git merge or git pull with git pull --rebase you will probably regret it.
  • If you mix git branch and git bd you will probably regret it.
  • If you move your branchdir base repo you will have to repair broken symlinks. Some of which are "supposed" to be broken.

Convert from git-branchdir-manager

This assumes you did not override $GB_DEV_BRANCH, $GB_MASTER_DIR_NAME, or $GB_MASTER_BRANCH which default to master, .gb_master, and gb_master respectively.

  1. Commit all changes in all branches. You can reset them off or interactive rebase later to fix them up.
  2. Remove the existing branchdirs besides .gb_master which you should keep.
  3. Move the .gb_master to master.
  4. Change directories to master.
  5. Run git checkout master.
  6. Run git bd --init. When prompted you may want to convert existing branches to branchdirs. This will recreate the branchdirs you just removed but will also setup the tracking git-bd needs to be aware of them.
  7. Run git branch -D gb_master.