I have a top level git repository organized like this:
- .git /
 - repoA /
- .git /
 - file
 - file2
 - folder /
 - ...
 
 - file
 - file2
 - folder /
 - ...
 
How can I get git before addand commit repoA(and repoA/.git) as if they were regular files / folders?
In particular, I want to bypass the processing of such a folder as a submodule, but I want to save the branches / history of the nested repo (therefore, a folder is required .git).
I do not want to change the state of the embedded repo (by fixing or merging stories) and I do not want to press it on a separate repo on the remote control.
The intended result is the same as if I were tar repoAun- tarlater. That is, all files are not corrupted without any modifications or special git processing.