亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

directory search
Guides gitattributes giteveryday gitglossary gitignore gitmodules gitrevisions gittutorial gitworkflows Administration git archive git bundle git clean git filter-branch git fsck git gc git instaweb git reflog Basic Snapshotting git add git commit git diff git mv git reset git rm git status Branching and Merging git branch git checkout git log git merge git mergetool git stash git tag Debugging git bisect git blame git grep Email git am git format-patch git request-pull git send-email External Systems git fast-import git svn Getting and Creating Projects git clone git init Git git annotate git archimport git bisect-lk2009 git check-attr git check-mailmap git check-ref-format git checkout-index git cherry git citool git column git credential git credential-cache git credential-store git cvsexportcommit git cvsimport git cvsserver git diff-files git diff-tree git difftool git fast-export git fetch-pack git fmt-merge-msg git get-tar-commit-id git gui git http-backend git http-fetch git http-push git imap-send git index-pack git interpret-trailers git ls-remote git ls-tree git mailinfo git mailsplit git merge-file git merge-index git merge-one-file git merge-tree git mktag git mktree git name-rev git notes git p4 git pack-objects git pack-redundant git pack-refs git parse-remote git patch-id git prune git prune-packed git quiltimport git receive-pack git remote-ext git remote-fd git remote-testgit git repack git replace git rerere git send-pack git sh-i18n git sh-setup git shell git show-branch git show-index git stripspace git unpack-file git unpack-objects git upload-archive git upload-pack git var git verify-commit git verify-tag git whatchanged git worktree Inspection and Comparison git describe git shortlog git show Miscellaneous api credentials api index gitcli gitcore tutorial gitcredentials gitcvs migration gitdiffcore githooks gitk gitnamespaces gitremote helpers gitrepository layout gitsubmodules gittutorial 2 gitweb gitweb.conf pack format User Manual Patching git apply git cherry-pick git rebase git revert Plumbing Commands git cat-file git check-ignore git commit-tree git count-objects git diff-index git for-each-ref git hash-object git ls-files git merge-base git read-tree git rev-list git rev-parse git show-ref git symbolic-ref git update-index git update-ref git verify-pack git write-tree Server Admin git daemon git update-server-info Setup and Config git git config git help Sharing and Updating Projects git fetch git pull git push git remote git submodule
characters

名稱

git-difftool  - 使用常見差異工具顯示更改

概要

git difftool [<options>] [<commit> [<commit>]] [--] [<path>…]

描述

git difftool是一個 Git 命令,允許您使用常見差異工具在修訂之間比較和編輯文件。git difftool是前端git diff并接受相同的選項和參數(shù)。參見 git-diff [1]。

選項

-d   --dir-diff

將修改后的文件復制到臨時位置,然后對它們執(zhí)行一個目錄 diff。該模式在啟動 diff 工具之前從不提示。

-y   --no-prompt

啟動 diff 工具前不要提示。

--prompt

在每次調(diào)用 diff 工具前提示。這是默認行為; 該選項用于覆蓋任何配置設置。

-t <tool>   --tool=<tool>

使用<tool>指定的 diff 工具。有效值包括 emerge,kompare,meld 和 vimdiff。運行git difftool --tool-help有效的<工具>設置列表。

如果沒有指定 diff 工具,git difftool將使用配置變量diff.tool。如果配置變量diff.tool沒有設置,git difftool會選擇一個合適的默認值。

您可以通過設置配置變量明確提供工具的完整路徑difftool.<tool>.path。例如,您可以通過設置配置 kdiff3 的絕對路徑difftool.kdiff3.path。否則,git difftool假定該工具在 PATH 中可用。

git difftool通過指定要在配置變量中調(diào)用的命令行,可以自定義運行其中一個已知的差異工具,以運行替代程序difftool.<tool>.cmd。

git difftool用此工具調(diào)用(通過-t--tool選項或diff.tool配置變量)所配置的命令行將具有可用以下變量來調(diào)用:$LOCAL被設置為包含DIFF前圖像的內(nèi)容的臨時文件的名字和$REMOTE是設置為包含diff post-image內(nèi)容的臨時文件的名稱。$MERGED是正在比較的文件的名稱。$BASE是為了與自定義合并工具命令兼容而提供的,并且具有與$MERGED相同的值。

--tool-help

打印可能使用的差異工具列表--tool

--no-symlinks

git difftool默認行為是在--dir-diff模式下運行時為工作樹創(chuàng)建符號鏈接,比較的右側產(chǎn)生與工作樹中文件相同的內(nèi)容。

指定--no-symlinks指示git difftool來創(chuàng)建副本。--no-symlinks是Windows上的默認值。

-x <command>   --extcmd=<command>

指定用于查看差異的自定義命令。git-difftool忽略配置的默認值并$command $LOCAL $REMOTE在指定此選項時運行。此外,$BASE在環(huán)境中設置。

-g   --no-gui

git-difftool使用-g--gui選項調(diào)用默認差異工具時,將從配置的diff.guitool變量中讀取,而不是從中讀取diff.tool。該--no-gui選項可用于覆蓋此設置。

--no-trust-exit-code

git-difftool在每個文件上分別調(diào)用 diff 工具。默認情況下,diff 工具報告的錯誤將被忽略。使用--trust-exit-code做出git-difftool退出時調(diào)用的 diff 工具返回一個非零退出代碼。

git-difftool將在--trust-exit-code使用時轉發(fā)所調(diào)用的工具的退出代碼。

有關支持選項的完整列表,請參閱 git-diff [1]。

配置變量

如果尚未定義difftool等價物,則git difftool回退到git mergetool配置變量。

diff.tool

要使用的默認差異工具。

diff.guitool

--gui指定時使用的默認差異工具。

difftool.<tool>.path

覆蓋給定工具的路徑。如果您的工具不在 PATH 中,這非常有用。

difftool.<tool>.cmd

指定用于調(diào)用指定的 diff 工具的命令。

有關--tool=<tool>更多詳細信息,請參閱上述選項

difftool.prompt

在每次調(diào)用 diff 工具前提示。

difftool.trustExitCode

如果被調(diào)用的 diff 工具返回非零退出狀態(tài),則退出 difftool。

有關--trust-exit-code更多詳細信息,請參閱上述選項

Previous article: Next article: