Save file in a public repository question

It’s great that there is an article on this topic. Here are some additional steps that I followed after reading this:

  1. Create a new repository in Github
  2. On the CodeAlly side, follow these instructions to create & add the ssh-key Generating a new SSH key and adding it to the ssh-agent - GitHub Docs.
  3. Back in Github and in the newly create repository, click on the wheel Settings button.

  1. In Settings, select Deploy keys.

image

  1. In Deploy keys, click on the Add key button.

  1. Paste the ssh-key generated in the VM into the deploy key. If you had trouble following the clip instruction, use less ~/.ssh/“your key pub” to get the key.

  2. Save the key.

  3. Get the ssh-key repository URL (as opposed to the https URL). See Quickly set up GitHub SSH example.

  4. In CodeAlly, set this URL as a github remote repository. Ex: git remote add sshorigin “the ssh repository URL”.

2 Likes