亚洲国产日韩欧美一区二区三区,精品亚洲国产成人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-merge-index  - 為需要合并的文件運(yùn)行合并

概要

git merge-index [-o] [-q] <merge-program> (-a | [--] <file>*)

描述

這將查找索引中的<file>(s),并且如果有任何合并條目,則將這些文件的SHA-1散列作為參數(shù)1,2,3(空參數(shù),如果沒(méi)有文件)和<file>作為參數(shù)4.三個(gè)文件的文件模式作為參數(shù)5,6和7傳遞。

選項(xiàng)

--

不要將更多的參數(shù)解釋為選項(xiàng)。

-a

針對(duì)需要合并的索引中的所有文件運(yùn)行合并。

-o

不要停止在第一次失敗的合并,而是在一次完成所有的合并 - 即使先前的合并返回錯(cuò)誤時(shí)繼續(xù)合并,并且僅在所有合并之后返回錯(cuò)誤代碼。

-q

不要抱怨失敗的合并程序(合并程序失敗通常表示合并期間發(fā)生沖突)。這是為了可能想要發(fā)出自定義消息的瓷器。

如果git merge-index使用多個(gè)<file> s(或-a)調(diào)用,則它將依次處理它們,只有在合并返回非零退出代碼時(shí)才會(huì)停止。

通常,這是通過(guò)一個(gè)腳本調(diào)用 Git 模仿RCS包中的merge命令來(lái)運(yùn)行的。

git merge-one-file分發(fā)中包含調(diào)用的示例腳本。

警報(bào)警報(bào)!Git“合并對(duì)象順序”與RCS merge程序合并對(duì)象順序不同。在上述順序中,原件是第一個(gè)。但是,3路合并程序的參數(shù)merge是將原件放在中間。不要問(wèn)我為什么。

示例:

torvalds@ppc970:~/merge-test> git merge-index cat MM
This is MM from the original tree.                        # original
This is modified MM in the branch A.                        # merge1
This is modified MM in the branch B.                        # merge2
This is modified MM in the branch B.                        # current contents

亦或是

torvalds@ppc970:~/merge-test> git merge-index cat AA MM
cat: : No such file or directory
This is added AA in the branch A.This is added AA in the branch B.This is added AA in the branch B.fatal: merge program failed

后面的例子顯示了git merge-index一旦任何事情返回錯(cuò)誤后,如何停止嘗試合并(即,cat為 AA 文件返回錯(cuò)誤,因?yàn)樗淮嬖谟谠嘉募?,因?code>git merge-index甚至沒(méi)有嘗試合并 MM 事物)。

Previous article: Next article: