---
name: "hg-fast-export"
section: "1"
platform: "linux"
package: "hg-fast-export"
version: "20140308-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/hg-fast-export"
---

# hg-fast-export(1)

import hg repository into git

## NAME

hg-fast-export - import hg repository into git

## SYNOPSIS

**hg-fast-export** \[*--quiet*\] \[*-r \<repo\>*\] \[*--force*\] \[*-m \<max\>*\] \[*-s*\] \[*-A \<file\>*\] \[*-M \<name\>*\] \[*-o \<name\>*\]

## DESCRIPTION

Import hg repository \<repo\> up to either tip or \<max\> If \<repo\> is omitted, use last hg repository as obtained from state file, GIT\_DIR/hg2git-state by default.

Note: The argument order matters.

## OPTIONS

- **-m**

  Maximum revision to import

**--quiet** Passed to [git-fast-import(1)](/git-fast-import/1.md)

- **-s**

  Enable parsing Signed-off-by lines

- **-A**

  Read author map from file (Same as in [git-svnimport(1)](/git-svnimport/1.md) and [git-cvsimport(1)](/git-cvsimport/1.md))

- **-r**

  Mercurial repository to import

- **-M**

  Set the default branch name (default to 'master')

- **-o**

  Use \<name\> as branch namespace to track upstream (eg 'origin')

- **--force**

  Ignore validation errors when converting, and pass --force to [git-fast-import(1)](/git-fast-import/1.md)
