diff --git a/pages/common/git-checkout.md b/pages/common/git-checkout.md index d886e74fac..7d45d729b9 100644 --- a/pages/common/git-checkout.md +++ b/pages/common/git-checkout.md @@ -6,10 +6,14 @@ `git checkout -b {{branch_name}}` -- Switch to an existing local or remote branch: +- Switch to an existing local branch: `git checkout {{branch_name}}` +- Switch to an existing remote branch: + +`git checkout --track {{remote_name}}/{{branch_name}}` + - Undo unstaged local modification: `git checkout .`