mergetool
NAME名
git-mergetool - Run merge conflict resolution tools to resolve merge conflictsgit-mergetool - マージ競合解決ツールを実行してマージ競合を解決します
SYNOPSIS概要
git mergetool [--tool=<tool>] [-y | --[no-]prompt] [<file>…]
DESCRIPTION説明
Use git mergetool to run one of several merge utilities to resolve
merge conflicts. It is typically run after git merge.git mergetoolマージの競合を解決するためにいくつかのマージユーティリティの1つを実行するために使用します。通常はgit mergeの後に実行されます。
If one or more <file> parameters are given, the merge tool program will be run to resolve differences on each file (skipping those without conflicts). Specifying a directory will include all unresolved files in that path. If no <file> names are specified, git mergetool will run the merge tool program on every file with merge conflicts.1つ以上の<file>パラメータが指定されている場合、マージツールプログラムは各ファイルの違いを解決するために実行されます(競合することなくそれらをスキップします)。ディレクトリを指定すると、そのパスに未解決のファイルがすべて含まれます。<file>名が指定されていない場合、git mergetoolはマージ競合のあるすべてのファイルに対してマージツールプログラムを実行します。
OPTIONSオプション
- -t <tool> -t <ツール>
- --tool=<tool> --tool = <ツール>
-
Use the merge resolution program specified by <tool>. Valid values include emerge, gvimdiff, kdiff3, meld, vimdiff, and tortoisemerge. Run
git mergetool --tool-helpfor the list of valid <tool> settings.<tool>で指定されたマージ解決プログラムを使用してください。有効な値はemerge、gvimdiff、kdiff3、meld、vimdiff、およびtortoisemergeです。git mergetool --tool-help有効な<tool>設定のリストに対して実行します。If a merge resolution program is not specified, git mergetool will use the configuration variable
merge.tool. If the configuration variablemerge.toolis not set, git mergetool will pick a suitable default.マージ解決プログラムが指定されていない場合、git mergetoolは構成変数を使用しますmerge.tool。設定変数merge.toolが設定されていない場合、git mergetoolは適切なデフォルトを選びます。You can explicitly provide a full path to the tool by setting the configuration variable
mergetool.<tool>.path. For example, you can configure the absolute path to kdiff3 by settingmergetool.kdiff3.path. Otherwise, git mergetool assumes the tool is available in PATH.構成変数を設定して、ツールへの絶対パスを明示的に指定できますmergetool.<tool>.path。たとえば、設定によってkdiff3への絶対パスを設定できますmergetool.kdiff3.path。そうでなければ、git mergetoolはツールがPATHで利用可能であると仮定します。Instead of running one of the known merge tool programs, git mergetool can be customized to run an alternative program by specifying the command line to invoke in a configuration variable
mergetool.<tool>.cmd.git mergetoolは、既知のマージツールプログラムの1つを実行する代わりに、構成変数で呼び出すコマンドラインを指定することによって、別のプログラムを実行するようにカスタマイズできますmergetool.<tool>.cmd。When git mergetool is invoked with this tool (either through the
-tor--tooloption or themerge.toolconfiguration variable) the configured command line will be invoked with$BASEset to the name of a temporary file containing the common base for the merge, if available;$LOCALset to the name of a temporary file containing the contents of the file on the current branch;$REMOTEset to the name of a temporary file containing the contents of the file to be merged, and$MERGEDset to the name of the file to which the merge tool should write the result of the merge resolution.場合Gitのmergetoolは、(いずれかを介して、このツールを使用して呼び出され-t、または--toolオプションまたはmerge.tool構成コマンドラインを用いて呼び出されるコンフィギュレーション変数)$BASE利用可能な場合、マージのための共通ベースを含むテンポラリファイルの名前に設定され、$LOCAL現在のブランチ上のファイルの内容を含む一時ファイルの名前に設定します。$REMOTEマージするファイルの内容を含む一時ファイル$MERGEDの名前に設定し、マージツールがマージ解決の結果を書き込むファイルの名前に設定します。If the custom merge tool correctly indicates the success of a merge resolution with its exit code, then the configuration variable
mergetool.<tool>.trustExitCodecan be set totrue. Otherwise, git mergetool will prompt the user to indicate the success of the resolution after the custom tool has exited.カスタムマージツールがその終了コードでマージ解決の成功を正しく示している場合は、構成変数mergetool.<tool>.trustExitCodeをに設定できますtrue。そうでなければ、git mergetoolはカスタムツールが終了した後にユーザーに解決の成功を示すように促します。 - --tool-help
-
Print a list of merge tools that may be used with
--tool.使用可能なマージツールの一覧を印刷し--toolます。 - -y
- --no-prompt
-
Don’t prompt before each invocation of the merge resolution program. This is the default if the merge resolution program is explicitly specified with the
--tooloption or with themerge.toolconfiguration variable.マージ解決プログラムを呼び出すたびにプロンプ??トを出さないでください。これは、マージ解決プログラムが--toolオプションまたはmerge.tool構成変数で明示的に指定されている場合のデフォルトです。 - --prompt - プロンプト
-
Prompt before each invocation of the merge resolution program to give the user a chance to skip the path.ユーザーにパスをスキップする機会を与えるために、マージ解決プログラムを呼び出すたびにプロンプ??トを出します。
- -g
- --gui
-
When git-mergetool is invoked with the
-gor--guioption the default merge tool will be read from the configuredmerge.guitoolvariable instead ofmerge.tool.ときにgit-mergetoolがで呼び出される-gか、--guiオプションのデフォルトのマージツールは、設定から読み込まれますmerge.guitool代わりの変数merge.tool。 - --no-gui - のぐい
-
This overrides a previous
-gor--guisetting and reads the default merge tool will be read from the configuredmerge.toolvariable.これは、以前よりも優先されます-gか--guiの設定を、デフォルトのマージツールを構成から読み込まれます読み込みmerge.tool変数。 - -O<orderfile> -O <orderfile>
-
Process files in the order specified in the <orderfile>, which has one shell glob pattern per line. This overrides the
diff.orderFileconfiguration variable (see git-config[1]). To canceldiff.orderFile, use-O/dev/null.ファイルを1行に1つのシェルグロブパターンを持つ<orderfile>で指定された順序でファイルを処理します。これはdiff.orderFile設定変数を上書きします(git-config [1]を参照)。キャンセルするにdiff.orderFileはを使用してください-O/dev/null。
TEMPORARY FILES一時ファイル
git mergetool creates *.orig backup files while resolving merges.
These are safe to remove once a file has been merged and its
git mergetool session has completed.git mergetool*.origマージを解決しながらバックアップファイルを作成します。ファイルがマージされてそのgit mergetoolセッションが完了したら、これらは安全に削除できます。
Setting the mergetool.keepBackup configuration variable to false
causes git mergetool to automatically remove the backup as files
are successfully merged.設定mergetool.keepBackupに設定変数をfalse原因git mergetoolファイルが正常にマージされるように自動的にバックアップを削除します。
GIT
Part of the git[1] suite一部のgit [1]スイート
関連記事
- write-tree
- verify-pack
- update-ref
- update-index
- symbolic-ref
- show-ref
- rev-parse
- rev-list
- read-tree
- merge-base
- ls-files
- hash-object
- for-each-ref
- diff-index
- count-objects
- commit-tree
- checkout-index
- check-ignore
- cat-file
- bundle
- archive
- instaweb
- filter-branch
- reflog
- fsck
- gc
- clean
- Workflows
- Tutorial
- Revisions
- gitmodules
- gitignore
- githooks
- Glossary
- Everyday Git
- gitattributes
- update-server-info
- daemon
- fast-import
- svn
- request-pull
- send-email
- format-patch
- am
- grep
- blame
- bisect
- revert
- rebase
- cherry-pick
- apply
- describe
- shortlog
- show
- submodule
- remote
- push
- pull
- fetch
- worktree
- tag
- stash
- log
- merge
- checkout
- branch
- mv
- rm
- reset
- commit
- diff
- status
- add
- clone
- init
- help
- config
- git
スポンサーリンク





