I had a git submodule and I was in need to add some pre-commit operations, so i searched for the directory .git to find the hook and so on. Instead of the directory i found only a file
.git
So, i was guessing what does this means? (in order to start understanding what exactly i messed up fetching the submodule)
I tried searching but cannot find something useful to understand what is going on.
The .git/
folder contains the development history of you project and is located in your project's root directory.
The .git
file is located in your submodule's root directory and contains the path to the .git/
directory associated with this submodule (located in your project's .git/modules/
directory)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.