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

目錄 搜尋
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
文字

名稱

git-difftool  - 使用常見(jiàn)差異工具顯示更改

概要

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

描述

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

選項(xiàng)

-d   --dir-diff

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

-y   --no-prompt

啟動(dòng) diff 工具前不要提示。

--prompt

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

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

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

如果沒(méi)有指定 diff 工具,git difftool將使用配置變量diff.tool。如果配置變量diff.tool沒(méi)有設(shè)置,git difftool會(huì)選擇一個(gè)合適的默認(rèn)值。

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

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

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

--tool-help

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

--no-symlinks

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

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

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

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

-g   --no-gui

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

--no-trust-exit-code

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

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

有關(guān)支持選項(xiàng)的完整列表,請(qǐng)參閱 git-diff [1]。

配置變量

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

diff.tool

要使用的默認(rèn)差異工具。

diff.guitool

--gui指定時(shí)使用的默認(rèn)差異工具。

difftool.<tool>.path

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

difftool.<tool>.cmd

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

有關(guān)--tool=<tool>更多詳細(xì)信息,請(qǐng)參閱上述選項(xiàng)

difftool.prompt

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

difftool.trustExitCode

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

有關(guān)--trust-exit-code更多詳細(xì)信息,請(qǐng)參閱上述選項(xiàng)

上一篇: 下一篇: