Git Switchblade

A script that will attempt to stash changes on your current branch when you switch(blade), and will restore those changes when you switch(blade) back. #!/usr/bin/env bash TARGET = $1 if [ -z " $TARGET " ] ; then echo "Error: No target branch specified." > & 2 echo "Usage: git switchblade <branch-name>" > & 2 exit 1 fi CURR = $( git rev-parse --abbrev-ref HEAD ) git stash push -u -m "switchblade on…