DEV Community

Discussion on: Mirroring My Canvas Games Between GitLab and GitHub

Collapse
 
lcavalli profile image
lcavalli

Aren't you storing your GitHub password in clear in GitLab options this way?

Collapse
 
matthewodle profile image
Matthew Odle

You are. Use at your own risk. Alternately you can set up a GitHub token and use that instead.

Ideally this would be done using ssh and post-receive hooks on your hosted GitLab, but with the goal being to automate my hobby workflow, spinning up my own GitLab seemed excessive.

If you have an alternative for automatically mirroring to GitHub, I would absolutely love to hear it.

Other options I've used are:

  • dual remotes on each project; manually pushing updates (less than ideal, one more step to forget)
  • custom bash script to push to both remotes for you (less than ideal, I switch workspaces often)