このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン |
linux:mercurial_git [2019/02/14 11:24] – [Git の特徴] ともやん | linux:mercurial_git [2020/02/03 12:00] – [コマンド比較] ともやん |
---|
| <code>hg status</code> | <code>git status</code> | ローカルのリポジトリで更新があったファイルの一覧を表示 | | | | <code>hg status</code> | <code>git status</code> | ローカルのリポジトリで更新があったファイルの一覧を表示 | | |
| <code>hg update [-C]</code> | <code>git merge origin/master</code> | 作業ディレクトリをリポジトリの最新内容に更新 | | | | <code>hg update [-C]</code> | <code>git merge origin/master</code> | 作業ディレクトリをリポジトリの最新内容に更新 | | |
| | <code>hg tags</code> | <code>git tag</code> | タグの一覧を表示 | | |
| <code>hg branch <branch name></code> | <code>git checkout -b <branch name></code> | ブランチの作成 | | | | <code>hg branch <branch name></code> | <code>git checkout -b <branch name></code> | ブランチの作成 | | |
| <code>hg update <branch name></code> | <code>git checkout <branch name></code> | ブランチの切替 | | | | <code>hg update <branch name></code> | <code>git checkout <branch name></code> | ブランチの切替 | | |
| <code>hg help</code> | <code>git help</code> | ヘルプを表示 | | | | <code>hg help</code> | <code>git help</code> | ヘルプを表示 | | |
| <code>hg convert</code> | - | 別 SCM のリポジトリから Mercurial リポジトリへの変換 | Mercurial は convert プラグインを有効化する必要がある | | | <code>hg convert</code> | - | 別 SCM のリポジトリから Mercurial リポジトリへの変換 | Mercurial は convert プラグインを有効化する必要がある | |
| | | <code>git clone --recursive <url></code> | submodule をクローン | | |
| | | <code>git clone |
| cd <directory> |
| git submodule update --init --recursive</code> | submodule をクローンし忘れた場合 | | |