GithubHelp home page GithubHelp logo

d3labsinc / git-extra-commands Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unixorn/git-extra-commands

0.0 2.0 0.0 107 KB

A collection of useful extra git scripts I've discovered or written, packaged for ease of use with shell frameworks.

License: Apache License 2.0

Ruby 19.63% Shell 48.78% Perl 15.82% Python 15.77%

git-extra-commands's Introduction

git-extra-commands

A zsh plugin that packages some extra git helper scripts I've found. I only wrote a few of these scripts, and the ones I didn't each have whatever licensing is included in the file.

This collection doesn't actually require zsh, but packaging it as a ZSH plugin makes it more convenient for people using a ZSH framework to use this collection.

If you wrote one of these scripts and want it removed from this collection, please either make a PR and/or file an issue against the repo and I will remove it.

Table of Contents generated with DocToc

Installing

Pre-requisites

The version of git Apple includes in OS X is stale. brew install git if you're on OS X.

Antigen

If you're using Antigen:

  1. Add antigen bundle unixorn/git-extra-commands to your .zshrc where you've listed your other plugins.
  2. Close and reopen your Terminal/iTerm window to refresh context and use the plugin. Alternatively, you can run antigen bundle unixorn/git-extra-commands in a running shell to have antigen load the new plugin.

oh-my-zsh

If you're using oh-my-zsh:

  1. In the command line, change to oh-my-zsh's custom plugin directory :

    cd ~/.oh-my-zsh/custom/plugins/

  2. Clone the repository into a new git-extra-commands directory:

    git clone https://github.com/unixorn/git-extra-commands.git git-extra-commands

  3. Edit your ~/.zshrc and add git-extra-commands – same as clone directory – to the list of plugins to enable:

    plugins=( ... git-extra-commands )

  4. Then, restart your terminal application to refresh context and use the plugin. Alternatively, you can source your current shell configuration:

    source ~/.zshrc

zgen

If you're using zgen:

  1. Add zgen load unixorn/git-extra-commands to your .zshrc along with your other zgen load commands.
  2. rm ${ZGEN_INIT}/init.zsh && zgen save

Manual Installation

Nothing here actually requires you to use ZSH or zgen, that's just a convenient distribution method for anyone using a ZSH framework.

If you aren't using any zsh frameworks, or if you're a bash user, do the following steps:

  1. git clone this repository
  2. Add it to your $PATH.

Other useful git stuff

Articles / Blog posts / Books

Utilities

  • blackbox - Tom Limoncelli open sourced the tool they use at Stack Exchange to use GPG to store secrets in a git repository.

  • branch-manager - ZSH plugin for branch management

  • git-amend - Bash script to amend older commits with staged changes.

  • git-branch-status - A git utility to make managing large number of branches either across many remotes easier. Branch status allows comparing all branches against their upstream or any arbitrary branch to show the number of commit differences.

  • git-diffall - Provides a directory based diff mechanism for git.

  • Peter Hurford's git-aliases.zsh, which you may prefer to the git plugin from oh-my-zsh.

  • git-fastclone - Think git clone --recursive on steroids. If you're doing repeated checkouts of a given repo on a machine (like a ci box), git-fastclone will speed things up considerably.

  • git-graph - creates a Graphviz graph showing the high-level structure of a repository's history

  • git_history_visualizer - python script to visualize the history of files in a git repository

  • Peter also wrote the git-it-on.zsh plugin. It adds a gitit command that will open your current directory on github, in your current branch.

  • gitsh - An interactive shell for git. From within gitsh you can issue any git command, even using your local aliases and configuration.

  • git-secrets - Prevents you from committing secrets and credentials into git repositories.

  • git-submodule-tools - A collection of scripts that should help make life with git submodules easier.

  • git-up - Fetch and rebase all locally-tracked remote branches

  • git-wayback-machine - A simple script to quickly navigate a project's state through it's GIT history

Credits

Contributing

  • Please include an entry in the credits section of README.md for any scripts in your PRs so authors get their work credited correctly.
  • Please use #!/usr/bin/env interpreter instead of a direct path to the interpreter, this makes it easier for people to use more recent versions when the ones packaged with their OS (OS X and CentOS, I'm looking at you) are stale.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.