Skip to content

Instantly share code, notes, and snippets.

@tuxracer
Last active December 15, 2015 11:09
Show Gist options
  • Save tuxracer/5250608 to your computer and use it in GitHub Desktop.
Save tuxracer/5250608 to your computer and use it in GitHub Desktop.
git new branch example: gnb another_branch Add to .bashrc
gnb() {
git checkout -b $1;
git branch --set-upstream-to remotes/origin/master;
git status;
git branch;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment