Reference
mg checkout
Switch to another branch tracked by mrge
Name
mg checkout
— Switch your working directory to a different branch in the stack.
Synopsis
Description
- Changes your current working branch to
<branch_name>
. - If
<branch_name>
isn’t tracked by mrge, it will prompt you to adopt it or use normal git.
Examples
- This is a thin wrapper around
git checkout
but ensures mrge tracking remains consistent. - If you see a “branch not tracked” error, consider mg adopt.
Was this page helpful?