Pick a git branch
npm install -g pickbranch
In any git repo use pickbranch
to pick a branch from a list of branches sorted on latest commit date.
You can then:
- type to filter
- use arrow keys to traverse list of branches
- hit Enter to go to selected branch
-
Search for
^start
to find branches beginning withstart
. It's also possible to use other regular expressions. -
Add a git alias in
~/.gitconfig
. Then usegit pick
to pick a branch in your git repo.[alias] pick = "!f() { pickbranch; }; f"