---
title: "マージ、リベース、チェリーピック、リバート"
description: "gitā はマージ、リベース、チェリーピック、リバート、リセットの実行前に何が起こるかを表示し、実行中の続行・スキップ・中止に対応し、コンフリクトエディターも備えています。"
url: https://getgita.app/ja/features/merge-and-rebase
lang: ja
---

# マージもリベースも、実行前に確認

履歴を統合したり書き換えたりする操作は、実行前にもう一度確認したいものです。gitā ではどの操作も、これから何が起きるかを示すシートを開きます。

A live copy of the app is on the page: https://getgita.app/ja/features/merge-and-rebase

## 試してみること

1. マージシートでブランチを選択する。
2. 3種類のマージ方法を切り替えてみる。
3. 履歴のコミットを右クリックして **チェリーピック** と **リバート** を確認する。

## マージとリベース

- **まずシートで確認.** マージ、リベース、チェリーピック、リバート、リセットは、いずれも対象のブランチやコミット名を明示したシートから始まります。あなたが確定するまで何も変わりません。
- **3つのマージ方法.** 可能なら早送り、常にマージコミットを作成、早送りのみ。設定 ▸ Git で普段使う方法を選べ、それぞれの動きを小さなアニメーションで確認できます。
- **コミットの編集.** 「この後のコミットを編集」はインタラクティブリベースです。各コミットを pick、reword、edit、squash、fixup、drop に設定し、ドラッグで順番を入れ替えられ、実行前に gitā が計画をチェックします。
- **続行、スキップ、中止.** 操作が進行中の間、履歴の上のバーに進捗と未解決ファイル数が表示され、続行、スキップ、中止のボタンが並びます。
- **コンフリクトエディター.** コンフリクトしたファイルは、ベース、現在の変更、取り込む変更と、その下の編集可能な結果欄で開きます。ボタンで片側を採用するか自分で書き直して、「保存してステージ」を押します。
- **影響件数付きのリセット.** ステージ済み変更を保持、ファイルを保持、または追跡済み変更を破棄して指定コミットへリセットできます。シートには影響するファイル数が表示され、ハードリセットには事前のチェックが必要です。
- **直前にもう一度チェック.** 実際にコマンドを実行する直前に、gitā はリポジトリが先ほど確認したブランチとコミットのまま変わっていないか確かめます。

## Questions, answered

### Can I resolve merge conflicts in gitā?

Yes. A conflicted file opens with the base, the current and the incoming version, and an editable result underneath. Take one side with a button or write the result yourself, then **Save & Stage**.

### Does gitā support interactive rebase?

Yes. **Edit Commits After This** is an interactive rebase: set each commit to pick, reword, edit, squash, fixup or drop, drag them into a new order, and gitā checks the plan before it runs.

[すべての機能](https://getgita.app/ja/features.md)

- **macOS 版をダウンロード:** https://github.com/rolottr/gita/releases/latest
- **GitHub で見る:** https://github.com/rolottr/gita

---

Apple, macOS and Mac are trademarks of Apple Inc. Git is a trademark of Software Freedom Conservancy. GitHub is a trademark of GitHub, Inc. Vercel is a trademark of Vercel Inc. Claude is a trademark of Anthropic, PBC. gitā is independent software and is not affiliated with any of them. Issues: https://github.com/rolottr/gita/issues
