git-utils

A collection of git utilities and scripts to help out your every day activities

View project on GitHub

Git Utilities

Utilities for Git that I’ve collected over the years.

One-line Install

$ bash -c "$(curl -#fL https://raw.githubusercontent.com/iamnewton/git-utils/go/install)"

Features

  • git clean-branches - Remove all local branches that have been merged into master
  • git hublog - Git log with per-commit cmd-clickable GitHub URLs (iTerm)
  • git pr - Github pull request helper
  • git rank-contributors - Script to trace through the logs and rank contributors
  • git wtf - Displays the state of your repository in a readable, easy-to-scan format

Acknowledgements

Inspiration and code was taken from many sources, including (in lexicographical order):

  • @cowboy (Ben Alman) https://github.com/cowboy/dotfiles
  • @jgallen23 (Greg Allen) https://github.com/jgallen23/dotfiles
  • @mathiasbynens (Mathias Bynens) https://github.com/mathiasbynens/dotfiles
  • @necolas (Nicolas Gallagher) https://github.com/necolas/dotfiles
  • @wmorgan (William Morgan)