0

Please tell me if there is a way git one local repo to synchronize to multiple remote servers?

I want one local repo to pull on github and gitlab and that they are identical to each other

Pavel12398
  • 47
  • 6

1 Answers1

1

You can configure as many remotes as you like and then push or fetch each of them, e.g.

git remote add gitlab url-to-your-gitlab/project/repo.git
git remote add github github.com/username/repo.git
git remote add private your-private-server/repo.git
git fetch gitlab
git push private master:master
knittl
  • 246,190
  • 53
  • 318
  • 364