* How to disable Git from automatically identifying and managing embedded git repositories?
@ 2021-06-01 0:26 AndyAo
2021-06-01 1:33 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: AndyAo @ 2021-06-01 0:26 UTC (permalink / raw)
To: git
When I upgraded Git from 2.24.1.windows.2 to 2.29.2.windows.2, I noticed
that the embedded git repository is recognized in `git status`, and if I
use `git add .` will manage the embedded git repository directly as a
submodule, instead of just ignoring them, which is the behavior I want.
How do I turn this off?
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to disable Git from automatically identifying and managing embedded git repositories?
2021-06-01 0:26 How to disable Git from automatically identifying and managing embedded git repositories? AndyAo
@ 2021-06-01 1:33 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2021-06-01 1:33 UTC (permalink / raw)
To: AndyAo; +Cc: git
AndyAo <zen96285@gmail.com> writes:
> When I upgraded Git from 2.24.1.windows.2 to 2.29.2.windows.2, I
> noticed that the embedded git repository is recognized in `git
> status`, and if I use `git add .` will manage the embedded git
> repository directly as a submodule, instead of just ignoring them,
> which is the behavior I want.
>
> How do I turn this off?
You can use the ignore mechanism to exclude it and "git add ." would
not touch it.
In my checkout of the git repository, I have a separate copy of the
same git repository and checked out at the path "Meta/". In the
upper-level repository, I have "/Meta" in .git/info/exclude (among
other private-ignore patterns), and that would keep it out of the
main repository's index even with "git add ." (not that I'd ever use
"add everything", which I do not think have any place in my
workflow). This is done without using .gitignore because it is
nobody else's business that I use such a "strange" setup and use the
pathname "Meta/" for it (hence project participants do not have to
know about it).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-01 1:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01 0:26 How to disable Git from automatically identifying and managing embedded git repositories? AndyAo
2021-06-01 1:33 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).