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

1

1 Answer 1

2

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 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.