0

I am setting up a Git repository. I know you can add repositories using git config --global, but is there a way that those known repositories gets cloned by users?

For example, I add git://X/mobility.git as X to the repo (somehow), a user clone it from git://Y, but then can do git push X without previously doing the git config ?

0x6adb015
  • 101
  • 2

1 Answers1

1

You should look into git submodules. Essentially, it's a way to keep the latest commit of an external repository inside a certain repository.

Kzqai
  • 1,278
  • 4
  • 17
  • 32