亚洲国产日韩欧美一区二区三区,精品亚洲国产成人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

Name

git-mergetool  - 運行合并沖突解決工具來解決合并沖突

概要

git mergetool [--tool=<tool>] [-y | --[no-]prompt] [<file>…]

描述

使用git mergetool運行的幾種合并一個實用程序來解決合并沖突。它通常在之后運行git merge。

如果給出一個或多個<file>參數(shù),則將運行合并工具程序以解決每個文件上的差異(跳過那些沒有沖突的文件)。指定一個目錄將包含該路徑中所有未解析的文件。如果未指定<文件>名稱,git mergetool則會在每個存在合并沖突的文件上運行合并工具程序。

選項

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

使用<tool>指定的合并解析程序。有效值包括emerge,gvimdiff,kdiff3,meld,vimdiff和tortoisemerge。運行git mergetool --tool-help有效的<工具>設(shè)置列表。

如果沒有指定合并解析程序,git mergetool將使用配置變量merge.tool。如果配置變量merge.tool沒有設(shè)置,git mergetool會選擇一個合適的默認值。

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

git mergetool可以通過指定要在配置變量中調(diào)用的命令行來定制運行其他程序,而不是運行其中一個已知的合并工具程序mergetool.<tool>.cmd。

git mergetool使用此工具調(diào)用此工具時(通過-t--tool選項或merge.tool配置變量),將調(diào)用已配置的命令行并將其$BASE設(shè)置為包含合并公共基礎(chǔ)的臨時文件的名稱(如果可用); $LOCAL設(shè)置為包含當前分支上文件內(nèi)容的臨時文件的名稱; $REMOTE設(shè)置為包含要合并的文件內(nèi)容的臨時文件的名稱,并將其$MERGED設(shè)置為合并工具應(yīng)寫入合并解析結(jié)果的文件的名稱。

如果自定義合并工具使用其退出代碼正確指示合并分辨率的成功,則可將該配置變量mergetool.<tool>.trustExitCode設(shè)置為true。否則,git mergetool將在用戶工具退出后提示用戶指示解析成功。

--tool-help

打印可能使用的合并工具列表--tool。

-y   --no-prompt

在每次調(diào)用合并解析程序之前不要提示。如果通過--tool選項或merge.tool配置變量顯式指定合并解析程序,則這是默認值。

--prompt

在每次調(diào)用合并解決方案之前提示,以使用戶有機會跳過該路徑。

-O<orderfile>

按照<orderfile>中指定的順序處理文件,每行有一個shell glob模式。這覆蓋了diff.orderFile配置變量(請參閱git-config [1])。取消diff.orderFile,使用-O/dev/null。

臨時文件

git mergetool*.orig在解析合并時創(chuàng)建備份文件。一旦文件合并并且git mergetool會話完成,這些文件就可以安全移除。

mergetool.keepBackup配置變量設(shè)置為false導致git mergetool在文件成功合并時自動刪除備份。

Previous article: Next article: