Skip to content

Instantly share code, notes, and snippets.

@andersr
Created September 14, 2018 14:16
Show Gist options
  • Save andersr/4f81fe6436e13a520615e672dfdbeccd to your computer and use it in GitHub Desktop.
Save andersr/4f81fe6436e13a520615e672dfdbeccd to your computer and use it in GitHub Desktop.
#!/bin/zsh
((!$#)) && echo No matching branch found && exit 1
git checkout $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment