Two remote repos for same project with different files #23777
-
How do I set up so that I can have two identical repos except one doesn’t have the source code? Just the production build. I want to update the one with the source code continually and then once I feel like making a new build, update the prod repo. What’s the best workflow for this? In layman’s terms for a beginner. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi shacp! You don’t want the prod repo to have any source code at all, just the compiled binaries? You could create a totally separate repo that just contains a README and use that for your prod repo, and attach each build as a Release? Doing this seems perhaps a little counterproductive - traditionally Releases are a snapshot of the code in the repository at a specific point. You wouldn’t perhaps prefer to have a dev repo where you work on your code as normal, and then a prod repo where you push up only the https://help.github.com/en/github/using-git/about-remote-repositories#creating-remotes So then you could use:
…and push to origin when working on your code most of the time. And then add:
…and only occasionally push to prod. (And then make a release as well, if you like.) I’d like to hear what other people think of adding Releases to a repo that doesn’t contain the code. Is it an absolute no no, or an acceptable practice? |
Beta Was this translation helpful? Give feedback.
Hi shacp! You don’t want the prod repo to have any source code at all, just the compiled binaries?
You could create a totally separate repo that just contains a README and use that for your prod repo, and attach each build as a Release?
https://help.github.com/en/github/administering-a-repository/managing-releases-in-a-repository#creating-a-release
Doing this seems perhaps a little counterproductive - traditionally Releases are a snapshot of the code in the repository at a specific point.
You wouldn’t perhaps prefer to have a dev repo where you work on your code as normal, and then a prod repo where you push up only the
master
branch when you are ready to make a new production build? You …