New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gitgoodies

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitgoodies

your git goodies cookbook

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

gg

the cookbook of git goodies

status log

gg helps you work with git more efficiently, saving you keystrokes for your most prized projects.

Think of gg as a wrapper for the git commands that you run all the time.

Getting Started

After the super painless installation, suppose we want to clone the awesome spark shell script (created by Zach Holman). status Alright, let's switch into that directory. gettingstarted2 After making a quick change, let's check the status of our clone. gettingstarted3 Looks like we haven't staged our changes.

In the standard git workflow, we would have to git add -A and then git commit -m "Updated example in README.".

With gg, we can simply gg c Updated example in README. and we're good to go. gettingstarted4 Let's check our clone's status again. gettingstarted5 Looking good!

Installation

gg can be installed via the Node Package Manager (npm).

	$ npm install -g gitgoodies

If that doesn't work, try running it as root. $ sudo npm install -g gitgoodies

You can also get up and running without npm, but it is not recommended to do so.

	# Clone the repository.
	$ git clone https://github.com/qw3rtman/gg.git

	# Switch into the repository's directory.
	$ cd gg

	# Install!
	$ npm install -g

	# Install as root, if the above command does not work.
	$ sudo npm install -g

gg relies on Node.js and git.

Usage

Initializing repositories

initialize

  • $ gg i
  • $ gg init
  • $ gg initialize

Cloning repositories

clone

  • $ gg cl
  • $ gg clone

Adding changes

add

  • $ gg a
  • $ gg aa # add all
  • $ gg add

Committing changes

commit

  • $ gg c
  • $ gg commit

Pushing commits

push

  • $ gg p
  • $ gg push

Pulling commits

pull

  • $ gg pl
  • $ gg pull

Fetching commits

fetch

  • $ gg f
  • $ gg fetch

Viewing status

status

  • $ gg s
  • $ gg status

Viewing log

log

  • $ gg l
  • $ gg log

Contributing

Contributions are always welcome.

We follow Airbnb's coding standard, so make sure you use that as a guideline.

Fork our code, make a new branch, and send a pull request.

TODO:

  • support for branches
  • handling for non-fast-forwards (when you need to pull first, merge, and then push)
  • handling for merge conflicts
  • handling for freshly initialized git repositories status
  • support for specifying path of repository initialization and cloning
  • unit tests

Keywords

FAQs

Package last updated on 03 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc