To update your existing repositories to SSH:

  1. Open your repository in kgcoe-git.rit.edu

  2. Click on the “Clone” button
    • repos_1.png
  3. Copy the repository URL. It should like this:
    • git@kgcoe-git.rit.edu:<user>/<project>.git
      
  4. On Linux/Mac:
    • Open your terminal and navigate to your repository
    • Run the following to update your URL:
      •  git remote set-url origin <url_from_step_3>
        
    • Run the following to verify that the change has been made:
      •  git remote -v
        
  5. On Windows w/ Git Bash:
    • Open Git Bash and navigate to your repository
    • Run the following to update your URL:
      •  git remote set-url origin <url_from_step_3>
        
    • Run the following to verify that the change has been made:
      •  git remote -v
        
  6. On Windows w/ GitHub Desktop Client:
    • Open the GitHub Desktop Client and select your repository
    • Click the “Repository” menu, then “Repository settings…”
      • repos_2.png
  • Click “Remote”
  • Change “Primary remote repository” to the URL you copied in Step 3
    • repos_3.png
  • Click “Save”
  1. On Windows w/ TortoiseGit:
    • Open File Explorer and navigate to the folder containing your repository
    • Right-click on your repository folder and select “TortoiseGit”, then “Settings”
      • repos_4.png
  • Click “Git”, then “Remote”
  • Select “origin” on the right side of the window
  • Change the “URL” field to the URL you copied in Step 3
    • repos_5.png
  • Click “Apply”
  • Click “OK”
  1. Alternatively, if all of your changes have been pushed to kgcoe-git.rit.edu, you can delete your local copy of the repository and clone it again
    • Verify that all of your changes have been pushed to kgcoe-git.rit.edu:
      •  git status
        
    • If you’re unsure whether all of your changes have been pushed, do not use this method
    • Delete the folder containing your local copy of the repository
    • Clone a new copy of the repository using your preferred method (e.g. terminal, Git Bash, TortoiseGit)