Setup and Config
Getting and Creating Projects
Basic Snapshotting
Branching and Merging
Sharing and Updating Projects
Inspection and Comparison
Patching
Debugging
External Systems
Server Admin
- 2.45.1 → 2.45.2 no changes
- 2.45.0 no changes
- 2.44.1 → 2.44.2 no changes
- 2.44.0
02/23/24
- 2.43.1 → 2.43.5 no changes
- 2.43.0
11/20/23
- 2.41.1 → 2.42.3 no changes
- 2.41.0
06/01/23
- 2.38.1 → 2.40.3 no changes
- 2.38.0
10/02/22
- 2.31.1 → 2.37.7 no changes
- 2.31.0
03/15/21
- 2.22.1 → 2.30.9 no changes
- 2.22.0
06/07/19
- 2.13.7 → 2.21.4 no changes
- 2.12.5
09/22/17
- 2.10.5 → 2.11.4 no changes
- 2.9.5
07/30/17
- 2.3.10 → 2.8.6 no changes
- 2.2.3
09/04/15
- 2.1.4 no changes
- 2.0.5
12/17/14
DESCRIÇÃO
git difftool is a Git command that allows you to compare and edit files between revisions using common diff tools. git difftool is a frontend to git diff and accepts the same options and arguments. See git-diff[1].
OPÇÕES
- -d
- --dir-diff
Copie os arquivos modificados para um local temporário e execute um "diff" neles. Este modo nunca avisa nada antes de executar a ferramenta diff.
- -y
- --no-prompt
Não avise antes de iniciar uma ferramenta diff.
- --prompt
Prompt before each invocation of the diff tool. This is the default behaviour; the option is provided to override any configuration settings.
- --rotate-to=<arquivo>
Comece mostrando a diferença para o caminho informado, os caminhos antes dele serão movidos para o final e para a saída.
- --skip-to=<arquivo>
Comece mostrando a diferença para o caminho informado, pulando todos os caminhos antes dele.
- -t <ferramenta>
- --tool=<ferramenta>
Use the diff tool specified by <tool>. Valid values include emerge, kompare, meld, and vimdiff. Run
git difftool --tool-help
for the list of valid <tool> settings.If a diff tool is not specified, git difftool will use the configuration variable
diff.tool
. If the configuration variablediff.tool
is not set, git difftool will pick a suitable default.Você pode fornecer explicitamente um caminho completo para a ferramenta definindo a variável de configuração
difftool.<ferramenta>.path
. Por exemplo, você pode configurar o caminho absoluto para o kdiff3 configurandodifftool.kdiff3.path
. Caso contrário, o git difftool assume que a ferramenta está disponível noPATH
.Em vez de executar uma das ferramentas "diff" conhecidas, o git difftool pode ser customizado para executar um programa alternativo, utilizando a linha de comando para chamar uma variável de configuração
difftool.<ferramenta>.cmd
.When git difftool is invoked with this tool (either through the
-t
or--tool
option or thediff.tool
configuration variable) the configured command line will be invoked with the following variables available:$LOCAL
is set to the name of the temporary file containing the contents of the diff pre-image and$REMOTE
is set to the name of the temporary file containing the contents of the diff post-image.$MERGED
is the name of the file which is being compared.$BASE
is provided for compatibility with custom merge tool commands and has the same value as$MERGED
.- --tool-help
Imprima uma lista de ferramentas "diff" que podem ser utilizadas com
--tool
.- --[no-]symlinks
O comportamento padrão do
git difftool
é criar links simbólicos para a árvore de trabalho quando executado no modo--dir-diff
e o lado direito da comparação produz o mesmo conteúdo que o arquivo na árvore de trabalho.Specifying
--no-symlinks
instructs git difftool to create copies instead.--no-symlinks
is the default on Windows.- -x <comando>
- --extcmd=<comando>
Specify a custom command for viewing diffs. git-difftool ignores the configured defaults and runs
<command> $LOCAL $REMOTE
when this option is specified. Additionally,$BASE
is set in the environment.- -g
- --[no-]gui
Quando o comando git-difftool é invocado através da opção
-g
ou--gui
, a ferramenta diff predefinida será lida através da variável de configuraçãodiff.guitool
em vez dodiff.tool
. Isso pode ser selecionado automaticamente usando a variável de configuraçãodifftool.guiDefault
. A opção--no-gui
pode ser utilizada para substituir estas configurações. Caso odiff.guitool
não esteja definido, faremos a procura na ordemmerge.guitool
,diff.tool
,merge.tool
até que uma ferramenta seja encontrada.- --[no-]trust-exit-code
git-difftool invokes a diff tool individually on each file. Errors reported by the diff tool are ignored by default. Use
--trust-exit-code
to make git-difftool exit when an invoked diff tool returns a non-zero exit code.git-difftool encaminhará o código de encerramento da ferramenta chamada quando
--trust-exit-code
for utilizado.
Para ver a lista completa das opções compatíveis consulte git-diff[1].
CONFIGURAÇÃO
O git difftool retorna às variáveis da configuração do git mergetool quando os equivalentes "difftool" não estiverem definidos.
Warning | Missing See original version for this content. |
Warning | Missing See original version for this content. |
VEJA TAMBÉM
- git-diff[1]
Exibir as alterações entre os commits, os commits, árvore de trabalho, etc
- git-mergetool[1]
Execute as ferramentas de resolução de conflitos de mesclagem para resolver os conflitos
- git-config[1]
Obter e definir as opções globais ou as de repositório
GIT
Parte do conjunto git[1]