diff --git a/pages/common/git-checkout.md b/pages/common/git-checkout.md index 1cbcd946d..d546e746e 100644 --- a/pages/common/git-checkout.md +++ b/pages/common/git-checkout.md @@ -6,6 +6,10 @@ `git checkout -b {{branch_name}}` +- Create and switch to a new branch based on a specific reference (branch, remote/branch, tag are examples of valid references): + +`git checkout -b {{branch_name}} {{reference}}` + - Switch to an existing local branch: `git checkout {{branch_name}}`