I have a top level git repo organized like so:
- .git/
- repoA/
- .git/
- file
- file2
- folder/
- ...
- file
- file2
- folder/
- ...
How can I get git to add
and commit
repoA
(and repoA/.git
) as if they were regular files/folders?
Specifically, I want to bypass the treatment of such a folder as a submodule but I want to retain the branches/history of the nested repo (so the .git
folder is required).
I do not want to alter the state of the nested repo (by committing or merging histories) and do not want to push it to a separate repo on the remote.
The intended result is the same as if I were to tar
repoA
and un-tar
it later. That is, all the files are intact with no modification or special treatment by git.