git submodule init and filemode
2014-02-11 09:27
639 查看
git submodule init
1. 只更新main repository的 .git/config,不会创建.git/modules2. 一旦init之后,即使修改submodule的url,也不会更新到config中
git submodule update
1. clone submodules,创建main repository的.git/modules2. submodules HEAD is detached
3. 默认的filemode=true (Cygwin中)
参考:
https://www.kernel.org/pub/software/scm/git/docs/git-submodule.html https://www.kernel.org/pub/software/scm/git/docs/git-config.html
init
Initialize the submodules, i.e. register each submodule name and url found in .gitmodules into .git/config. It will also copy the value of submodule.$name.update into
.git/config. The key used in .git/config is submodule.$name.url.This command does not alter existing information in .git/config. You can then customize the submodule clone URLs in .git/config for your local setup and proceed togit submodule update;
you can also just use git submodule update --init without the explicit init step if you do not intend to customize any submodule locations.
core.fileMode
If false, the executable bit differences between the index and the working tree are ignored; useful on broken filesystems like FAT. See git-update-index(1).
The default is true, except git-clone(1) or git-init(1) will
probe and set core.fileMode false if appropriate when the repository is created.
core.ignoreCygwinFSTricks
This option is only used by Cygwin implementation of Git. If false, the Cygwin stat() and lstat() functions are used. This may be useful if your repository consists
of a few separate directories joined in one hierarchy using Cygwin mount. If true, Git uses native Win32 API whenever it is possible and falls back to Cygwin functions only to handle symbol links. The native mode is more than twice faster than normal Cygwin
l/stat() functions. True by default, unless core.filemode is true, in which case ignoreCygwinFSTricks is ignored as Cygwin’s POSIX emulation is required to support core.filemode.
相关文章推荐
- npm ERR! git submodule -q update --init --recursive: fatal: unable to connect to github.com:
- git submodule init 出现错误
- git submodule的使用
- git submodule以及被忽略的.gitignore
- mongodb exception in initAndListen: 12596 old lock file, terminating解决方法
- mongodb exception in initAndListen: 12596 old lock file, terminating 解决方法
- git submodule的使用
- git submodule,解决依赖模块更新
- Git Submodule使用完整教程
- JMS System Module and Resource -- Subdeployment Targeting
- Git Submodule入门与实践
- 使用git submodule管理一个需要多个分立开发或者第三方repo的项目
- Git Submodule
- Git 进阶:Submodule
- Git--Submodule使用
- git submodule
- 使用git submodule管理一个需要多个分立开发或者第三方repo的项目
- Git中含Submodule时Maven项目如何release
- Home not found. Define system property "openfireHome" or create and add the openfire_init.xml file to the classpath
- [问题解决] initAndListen: 10309 Unable to create/open lock file: /data/db/mongod.lock