Created
September 18, 2014 13:23
-
-
Save knatten/9a7710310c5b8e1948e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias pushb="GIT_BRANCH_STACK=\"\$(git rev-parse --abbrev-ref HEAD);\"\$GIT_BRANCH_STACK && git checkout" | |
alias popb="git checkout \$(echo \$GIT_BRANCH_STACK | tr \";\" \"\n\" | head -1);GIT_BRANCH_STACK=\$(echo \$GIT_BRANCH_STACK|sed 's/[^;]*;//')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment