Vous regardez une version antérieure (v. /display/rc/Changing+KGCOE+GitLab+Repository+URLs+from+HTTPS+to+SSH) de cette page.

afficher les différences afficher l'historique de la page

« Afficher la version précédente Vous regardez la version actuelle de cette page. (v. 3) afficher la version suivante »

As of 2022-07-29, you will no longer be able to access KGCOE GitLab repositories using HTTPS. To update your existing repositories to SSH:

  1. Open your repository in kgcoe-git.rit.edu
  2. Click on the "Clone" button
  3. Copy the repository URL
    1. This URL should like this: 
      git@kgcoe-git.rit.edu:<user>/<project>.git
  4. On Linux/Mac:
    1. Open your terminal and navigate to your repository
    2. Run the following to update your URL:
      git remote set-url origin <url_from_step_3>
    3. Run the following to verify that the change has been made: 
      git remote -v
  5. On Windows w/ Git Bash:
    1. Open Git Bash and navigate to your repository
    2. Run the following to update your URL:
      git remote set-url origin <url_from_step_3>
    3. Run the following to verify that the change has been made: 
      git remote -v
  6. On Windows w/ GitHub Desktop Client:
    1. Open the GitHub  Desktop Client and select your repository
    2. Click the "Repository" menu, then  "Repository settings..."
    3. Click "Remote"
    4. Change "Primary remote repository" to the URL you copied in Step 3
    5. Click "Save"
  7. On Windows w/ TortoiseGit:
    1. Open File Explorer and navigate to the folder containing your repository
    2. Right-click on your repository folder and select "TortoiseGit", then "Settings"
    3. Click "Git", then "Remote"
    4. Select "origin" on the right side of the window
    5. Change the "URL" field to the URL you copied in Step 3
    6. Click "Apply"
    7. Click "OK"
  8. 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
    1. Verify that all of your changes have been pushed to kgcoe-git.rit.edu:
      git status
    2. If you're unsure whether all of your changes have been pushed, do not use this method
    3. Delete the folder containing your local copy of the repository
    4. Clone a new copy of the repository using your preferred method (e.g. terminal, Git Bash, TortoiseGit)
  • Aucune étiquette