Created
March 26, 2012 02:31
-
-
Save fraserharris/2202508 to your computer and use it in GitHub Desktop.
git bronch - branch & checkout in one command
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
# git bronch - branch & checkout in one command | |
# > git bronch blah | |
# Add to .gitconfig or use command: git config alias.bronch = ... | |
[alias] | |
bronch = !"f() { git branch $1 && echo \"Created branch '$1'\" && git checkout $1; }; f" |
Looks like i'm the noob here. I looked at man branch but not man checkout.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok here's the noob's question: how is this different from git checkout -b ?