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-push-all

v1.0.0

Published

Quickly commit all changes and push to GitHub

Downloads

5

Readme

Git-push-all (gal)

gal is a small utility allowing you to quickly commit and push your entire git branch. Gal also automates setup of git credential storage with libsecret (for GNU/Linux).

Installation

You must have curl and libsecret installed for the store command to store your credentials.

You must also have the following directory on your system for credential storage to work: /usr/share/doc/git/contrib/credential. If this directory does not exist on your system, make this directory before proceeding.

$ npm install -g git-push-all

Usage

Key commands:

gal [-m | --message] [-r | --remote] [-b | --branch] [-a | --add-only] [-c | --commit-only] [-o | --add-commit-only] [-p | --push-only] [-l | --pull] [-v | --version]

Running gal without options does the following:

$ git add -A
$ git commit -m <DEFAULT MESSAGE>
$ git push -u <DEFAULT REMOTE> <DEFAULT BRANCH>

The <DEFAULT MESSAGE> and <DEFAULT REMOTE> are saved in your config.json file. The <DEFAULT BRANCH> is your current branch. You can override the default settings with the -m | --message, -r | remote and -b | --branch options.

So:

$ gal -m My fancy commit message. -r some-remote -b some-branch

runs:

$ git add -A
$ git commit -m "My fancy commit message."
$ git push -u some-remote some-branch

gal M [-f | --from] [-t | --into] [-b | --branch] [-n | --no-push]

Running gal M without options does the following:

$ git checkout <DEFAULT INTO BRANCH>
$ git merge <DEFAULT FROM BRANCH>
$ git push -u <DEFAULT REMOTE> <DEFAULT INTO BRANCH>

The <DEFAULT INTO BRANCH> is master and the <DEFAULT FROM BRANCH> is the current branch. The <DEFAULT FROM BRANCH> is saved in your config.json file. You can override the default settings with the -f | --from, -t | --into and -r | --remote options.

So:

$ gal -f first-branch -t second-branch -r some-remote

runs:

$ git checkout second-branch
$ git merge first-branch
$ git push -u some-remote second-branch

The [n | --no-push] option will prevent the push at the end.

gal config [-m | --message] [-r | --remote]

Running this command without options prints your config.json file, which contains your default remote and commit message. You can change the default settings with the -m | --message and -r | remote options.

So:

$ gal config -m My fancy new default commit message -r new-default-remote
$ gal config
{
  "remote": "new-default-remote",
  "message": "My fancy new default commit message"
}

gal store

Automatically sets up git credential storage with libsecret. The latest libsecret dev files will be installed and the necessary files and folders will be donwloaded and made automatically if not already on your machine. Next time you enter some credentials using git (like your GitHub username and password when on your next push), they will be encrypted and saved on your machine. This will make your future pushes much quicker and easier, since you won't have to type your username and password anymore!

More features

Run gal --help for a full list of commands and gal <command> --help for a full list of options for the desired command.

Thanks for reading, and hope you enjoy using gal!