Skip to main content

Multiple Origins

Pushing to multiple origins ensures that a repo is always available. While I use Gitea as my main repository, I might want to mirror it to Bitbucket, Github, or GitLab for redundancy.

As an example, if my server was ever destroyed it would be much easier to clone my services repository from a mirroed copy on Bitbucket than jump through the hoops of getting Gitea set back up since the configuration for Gitea is stored in a git repository.

Push to two origins

git remote set-url --add --push origin git://original/repo.git
git remote set-url --add --push origin git://another/repo.git