Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RainerBlessing/920103530a9cabfa3c906fb1932f8546 to your computer and use it in GitHub Desktop.
Save RainerBlessing/920103530a9cabfa3c906fb1932f8546 to your computer and use it in GitHub Desktop.
GitL Do a Pull before creating a Branch
#usage: git br test
git config --global alias.br "!f() { git pull && git checkout -b $1; }; f"
@RainerBlessing
Copy link
Author

RainerBlessing commented Oct 9, 2020

git config --global alias.br "!f() { git pull && git checkout -b $1; }; f"
git config --global alias.st status

git br test
Already up to date.
Switched to a new branch 'test'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment