= pushb/popb

This is a small cli utility that works similarly to pushd/popd, except on git branches instead on the working directory

== Example


~/tmp$ mkdir test-repo ~/tmp$ cd test-repo ~/tmp/test-repo$ git init Initialized empty Git repository in /home/pwoolcoc/tmp/test-repo/.git/ ~/tmp/test-repo on master$ touch test ~/tmp/test-repo on master!$ git add test ~/tmp/test-repo on master!$ git commit -m'initial commit' [master (root-commit) 4e7c7ad] initial commit 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test ~/tmp/test-repo on master$ git checkout -b my-new-branch Switched to a new branch 'my-new-branch' ~/tmp/test-repo on my-new-branch$ pushb master Switched to branch 'master' ~/tmp/test-repo on master$ popb Switched to branch 'my-new-branch'

~/tmp/test-repo on my-new-branch$

== Install


$ cargo install pushd

== Use


$ pushd

$ popd