Skip to content

See your latest local git branches, formatted real fancy

License

Notifications You must be signed in to change notification settings

rwinch/git-recent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-recent

Type git recent to see your latest local git branches

Usage

git recent

Optionally, add -n<int> to see the most recent <n> branches

git recent -n5

git-recent screenshot

If you're a Windows user, you need to use Git Bash or similar shell in order to effectively use this utility.

Installation

Basic install

You can add the git-recent location to your path (e.g. add the directory to your PATH environment or copy git-recent into an existing included path like /usr/local/bin or ~/bin/).

Install via NPM:

You can use also npm to install the global binary:

npm install --global git-recent

On Mac, you can install with homebrew:

brew install git-recent

ZSH

Add antigen bundle paulirish/git-recent to your .zshrc with your other bundle commands.

Antigen will handle cloning the plugin for you automatically the next time you start zsh, and periodically checking for updates to the git repository. You can also add the plugin to a running zsh with antigen bundle paulirish/git-recent for testing before adding it to your .zshrc.

  1. git clone /~https://github.com/paulirish/git-recent.git $ZSH_CUSTOM/plugins/git-recent
  2. Add git-recent to your plugin list - edit ~/.zshrc and change plugins=(...) to plugins=(... git-recent)

Add zgen load paulirish/git-recent to your .zshrc file in the same function you're doing your other zgen load calls in. ZGen will take care of cloning the repository the next time you run zgen save, and will also periodically check for updates to the git repository.

zplug "paulirish/git-recent", as:plugin

If you like this you may also be interested in...

  • git open - Open the repo website in your browser
  • diff-so-fancy - Making the output of git diff so fancy

License

Copyright Paul Irish. Licensed under MIT.

Changelog

  • 2016-05-16 - added to paulirish/dotfiles
  • 2016-08-05 - released in standalone repo and published to npm

About

See your latest local git branches, formatted real fancy

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%