Git archive - Multiple gits

I am using git archive with the --remote option to archive multiple gits located under the same folder. I want to include these folder names of the four gits and if .gitattributes is available in those gits that should also be taken into account in the archive.

With the git archive --worktree-attributes --prefix=source --remote I did not get the expected result.

How to reach this archive?

+4
source share
1 answer

You can use a similar script than git -archive-all , which creates an archive file of all git repositories and submodules in the current local path.
It must be completed to allow for the remote path.

+1
source

All Articles