Reputation: 1861
I have a repo inside a GitHub organization.
It has its code which depends on some credentials.
It will basically look for a file called as environment.properties
, which will contain a key-value pair like env=pps
, and will then go on to read a file called as pps-credentials.properties
.
We want to have another repo in the same organization but maintain the same code. This will be deployed to another cloud environment and read the environment file and find a pair like env=jkd
and then read the jkd-credentials.properties
.
Both these codes will be deployed to different cloud environments.
Our requirement is that:
Upvotes: 0
Views: 1049
Reputation: 535989
If someone, such as you, has a local copy of this repo, you can give your copy two remotes, representing the two GitHub repos, and just keep them in sync manually by fetching from one and pushing to the other.
This actually is no different from how you keep a fork in sync with its original (upstream). You don’t need a GitHub fork to do that.
I actually do this as a way of having a backup copy of my company repo. If the company server goes down temporarily (it has happened sometimes) I still have my code and a place to push to.
Upvotes: 1