{"version":"2.1.274","anchor":"branch-checkout-commands-now-use-end-of-options-guard","canonical_anchor":"branch-checkout-commands-now-use-end-of-options-guard","heading":"Branch checkout commands now use -- end-of-options guard","tier":"internal","area":"Git","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.274\/e\/branch-checkout-commands-now-use-end-of-options-guard","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.274","markdown":"### Branch checkout commands now use `--` end-of-options guard\n\nBranch checkout git commands now add a trailing -- to prevent branch names being misread as options\n\n**What**\n\nGit `checkout` commands run internally, including plain checkout, checkout with a new branch tracking a remote, and checkout tracking a remote branch, now append a trailing `--` argument.\n\n**Why**\n\nThe `--` tells git that everything after it is a file or branch name, not an option flag. This prevents a branch name that happens to look like a flag (for example, one starting with a dash) from being misinterpreted as a git option.\n\n- Area: Git\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}