How to fetch without submodules #1581
Answered
by
spenserblack
CodeWenjiu
asked this question in
Q&A
-
My project has several large submodules dependencies. When using onefetch, it includes their code in the statistics, making it difficult to observe my project’s actual codebase size. How can I explicitly exclude submodules from being counted? |
Beta Was this translation helpful? Give feedback.
Answered by
spenserblack
Jun 8, 2025
Replies: 1 comment 2 replies
-
You can use the Also, since the code is currently detected via tokei, a |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
CodeWenjiu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the
--exclude
option to exclude certain paths. Use--help
for more info.Also, since the code is currently detected via tokei, a
.tokeignore
file should work. A more generic.ignore
file should work, too. Same format as.gitignore
.