Skip to content

Automating Synchronization for a Mirrored GitHub Repository within a University Organization #72

Answered by jtgorman
zzrcxb asked this question in Q&A
Discussion options

You must be logged in to vote

I honestly would be tempted in this situation to stick with one repository and do one of...

  1. fork the repository (not sure if this is possible with private repos) and make public
  2. clone the private repo, changing the remote to the public one and pushing up history
  3. Just start fresh with the code as is at some point in time.

Especially if all changes in private are just going to end up on the public. After all, you can setup in the project who can commit and the like even in a public repo.

If you're doing more of a procedure like you want commits to a main branch to be "synced" from private to public, a github action might do a trick. You'll ant to set up a deploy key, ssh key or Oauth toke…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by edthedev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants