Skip to content

Instantly share code, notes, and snippets.

@andersr
Created June 19, 2019 10:35
Show Gist options
  • Save andersr/817a97a13a3f87b495674525d1e8cbd8 to your computer and use it in GitHub Desktop.
Save andersr/817a97a13a3f87b495674525d1e8cbd8 to your computer and use it in GitHub Desktop.
#!/bin/zsh
((!$#)) && echo No matching branch found && exit 1
git checkout $1
# place in ~./bin/git-<command>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment