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

名稱

gitmodules  - 定義子模塊屬性

概要

$GIT_WORK_DIR/.gitmodules

描述

.gitmodules文件位于 Git 工作樹的頂層目錄中,是一個文本文件,其語法與 git-config [1] 的要求相匹配。

文件包含每個子模塊的一個子部分,并且子部分值是子模塊的名稱。名稱被設置為子模塊已被添加的路徑,除非它是用--name選項自定義的git submodule add。每個子模塊部分還包含以下必需的鍵:

submodule.<name>.path

定義相對于 Git 工作樹的頂級目錄的路徑,其中子模塊預計將簽出。路徑名稱不能以/。所有子模塊路徑在 .gitmodules 文件中必須是唯一的。

submodule.<name>.url

定義可從中克隆子模塊存儲庫的URL。這可能是一個準備好傳遞給 git-clone [1] 或者(如果它以./或../開頭)相對于超級項目的源存儲庫的位置的絕對 URL。

另外,還有一些可選的鍵:

submodule.<name>.update

定義指定子模塊的默認更新過程,即通過超級項目中的 “git submodule update” 命令更新子模塊的方式。這僅用于git submodule init初始化相同名稱的配置變量。這里允許的值是checkoutrebase,mergenone。有關update它們的含義,請參閱 git-submodule [1] 中的命令說明。請注意,!command出于安全原因,表單在此處被故意忽略。

submodule.<name>.branch

用于跟蹤上游子模塊中更新的遠程分支名稱。如果該選項未指定,則默認為master。特殊值.用于指示子模塊中分支的名稱應與當前存儲庫中當前分支的名稱相同。有關--remote詳細信息,請參閱 git-submodule [1] 中的文檔。

submodule.<name>.fetchRecurseSubmodules

選項可用于控制此子模塊的遞歸提取。如果此選項也存在于超級項目的 .git / config 子模塊條目中,那么該設置將覆蓋. gitmodules 中的設置。通過在 “git fetch” 和 “git pull” 中使用 “--no-recurse-submodules” 選項,可以在命令行上覆蓋這兩個設置。

submodule.<name>.ignore

定義在什么情況下,“git status” 和 diff 系列顯示已修改的子模塊。支持以下值:

all

子模塊永遠不會被視為已修改(但仍會顯示在狀態(tài)的輸出中,并在已上載時進行提交)。

dirty

對子模塊工作樹的所有更改都將被忽略,只會考慮子模塊的 HEAD 與其在超級項目中記錄的狀態(tài)之間的差異。

untracked

子模塊中只有未跟蹤的文件將被忽略。承諾的差異和修改被跟蹤的文件將顯示出來。

none

沒有對子模塊的修改被忽略,所有提交的差異以及對跟蹤和未跟蹤文件的修改都會顯示出來。這是默認選項。

If this option is also present in the submodules entry in .git/configof the superproject, the setting there will override the one found in.gitmodules.Both settings can be overridden on the command line by using the"--ignore-submodule" option. The 'git submodule' commands are not
affected by this setting.

submodule.<name>.shallow

設置為 true 時,此子模塊的克隆將作為淺層克?。v史深度為1)執(zhí)行,除非用戶明確要求使用非淺層克隆。

例子

考慮下面的 .gitmodules 文件:

[submodule "libfoo"]
        path = include/foo
        url = git://foo.com/git/lib.git
[submodule "libbar"]
        path = include/bar
        url = git://bar.com/git/lib.git

這定義了兩個子模塊,libfoolibbar。這些預計的路徑要被檢出的include/fooinclude/bar,并為兩個子模塊被指定一個URL可以用于克隆子模塊。

上一篇: 下一篇: