Reference
mg init
Initialize a repository to use mrge
Name
mg init
— Initialize the current repository for mrge, setting up necessary metadata.
Synopsis
Description
- Creates a
.mrge
folder in your repo to store CLI metadata. - Checks if your repo is already configured; if so, it will prompt to overwrite or skip.
- Optionally sets the default remote (e.g.,
origin
,upstream
).
Options / Flags
--force
: Overwrite existing mrge configuration, if any.--remote <remote-name>
: Specify which remote to track by default (defaults toorigin
).
Examples
- Requires an active
.git
directory; rungit init
first if your repo is fresh. - If you are using GitHub CLI authentication, ensure
gh auth login
is completed.
Was this page helpful?