All of lore.kernel.org
 help / color / mirror / Atom feed
* Managing one github repo with Gitignore and Submodules for two different remotes
@ 2025-02-06 14:10 USA Linux UAE
  2025-02-06 22:23 ` brian m. carlson
  0 siblings, 1 reply; 2+ messages in thread
From: USA Linux UAE @ 2025-02-06 14:10 UTC (permalink / raw)
  To: git

Hi everyone,

I'm hoping to get some advice on managing a GitHub repository with a
slightly complex setup. We have a main repo that utilizes both a
.gitignore file and submodules. Our goal is to push this repo to two
different remote repositories (let's call them remote_A and remote_B),
but with a key difference:

remote_A should respect the .gitignore file as usual, excluding the
files and directories specified within it.
remote_B should effectively ignore the .gitignore file, and include
all files and directories, even those listed in .gitignore.
Essentially, we want the opposite behavior of .gitignore for remote_B.

Additionally, we need to ensure the submodules are handled correctly
for both remotes. Ideally, the submodule pointers should remain
consistent, regardless of which remote we're pushing to.


Could anyone offer advice on the best approach for this scenario? Are
there any recommended workflows or tools specifically designed for
this type of setup? Any insights regarding submodule management in
this context would be greatly appreciated.

Thanks in advance for your help!

Amjad

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-02-06 22:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-06 14:10 Managing one github repo with Gitignore and Submodules for two different remotes USA Linux UAE
2025-02-06 22:23 ` brian m. carlson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.