Skip to content

jrtm/juliantools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Juliantools

Various utilities.

Tools

git/git-history.pl

List git branch history from reflog, and jump to specific entry.

Usage:

# List recently visited branches
$ git-history.pl
1 first-branch
2 second-branch
3 third-branch

# Jump to "second-branch", labeled by index "2"
$ git-history.pl 2
Switched to branch 'second-branch'

Note: The master branch is ignored, and the max number of branches listed is specified in the script (default 30).

Protip: Alias the script to something easy to type, e.g. å for very quick branch jumping!

$ å
1 first-branch
2 second-branch
3 third-branch

$ å 3
Switched to branch 'third-branch'

About

Various utilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages