Movatterモバイル変換


[0]ホーム

URL:


This is an archive of the discontinued Mercurial Wiki

Information here is likelyvery out-of-date (Learn more)
Mercurial

GitExtension(view raw)


git

Operate on Git repositories.

Contents

  1. Status
  2. Overview
  3. Usage
    1. Installation
    2. Configuration
    3. Use
  4. Alternatives
    1. HgGit
    2. Convert

1. Status

This extension is distributed with Mercurial asexperimental.

Author:Augie Fackler

2. Overview

This extension grants Mercurial the ability to operate on Git repositories.

Requires pygit2.

3. Usage

3.1. Installation

Install pygit2 into the Python used by your Mercurial:$(hg debuginstall -T'{pythonexe}') -m pip install --user pygit2

3.2. Configuration

Enable the extension:

[extensions]git =

3.3. Use

In the Mercurial 5.4 release:

Example:

git clone git://...hg init --githg statushg loghg bookmarkshg diffhg addhg commitgit pushgit pull...

4. Alternatives

4.1. HgGit

TheHgGit extension, which is installed separately from Mercurial, is more mature and more widely used.

It converts a git repository into a native Mercurial repository (including incremental imports). As a consequence:

4.2. Convert

TheConvertExtension, packaged with Mercurial, has Git support.

GitExtension (last edited 2020-09-24 17:33:01 bytimeless)

This archived wiki used to be powered by MoinMoin


[8]ページ先頭

©2009-2025 Movatter.jp