cor

branching workflow

Checkout a release branch based on a releases/sprint-x naming convention, and pull the latest changes from the remote. Similar to the cdp alias but for the release branch, this quickly switches you to the release branch and ensures you have the most up-to-date code.

Usage: git cor 198.3

CLI Command

git config --global alias.cor "!f() { git checkout releases/sprint-$1 && git pull origin releases/sprint-$1; }; f"

.gitconfig Snippet

[alias]
  cor = !f() { git checkout releases/sprint-$1 && git pull origin releases/sprint-$1; }; f