---
title: "GitHub Repo Relocation"
type: "wiki"
space: "Software"
author: "Charmaine Williams"
created: 2024-04-26T07:43:09Z
updated: 2024-04-26T21:01:49Z
tags: ["ghec", "github", "github-bash", "github-desktop", "github-visual"]
url: "https://students.senecapolytechnic.ca/spaces/189/software/wiki/view/14055/github-repo-relocation"
---

# GitHub Repo Relocation

## GitHub Repo Relocation

For current Seneca GitHub users who have their IDE set up for existing code, it simply involves reconfiguring the IDE to target the new location.

Please follow instructions below:

- - Using Visual Studio Code
    - Using Github Desktop
    - Using Gib Bash Shell

* * *

### Using Visual Studio Code

1. Open Visual Studio Code. Click on "**Terminal**" and start a new terminal.

![](https://students.senecapolytechnic.ca/attachment?file=4%2Bx0P32uQfQuXOd4CgcF0g%3D%3D)
2. In the Terminal, run the git command "**git remote -v"** to see where is the origin configuration.

![](https://students.senecapolytechnic.ca/attachment?file=KjLt%2FHIum5pTo3I4LV2nhA%3D%3D)
3. If it needs to point to the new GHEC, then find the origin URL and run command "**git remote set-url origin https://github.com/\(insert new origin repo here**\)" below. 

![](https://students.senecapolytechnic.ca/attachment?file=U08E0YnQKs75Q57bqTA9AQ%3D%3D)
4. Additionally check to ensure the login credentials in Visual Studio Code is also updated for extensions. If still using the github.senecapolytechnic.ca userid, **Sign Out**, and **Sign in** again to the https://github.com/Seneca-Polytechnic

![](https://students.senecapolytechnic.ca/attachment?file=e4gc01eEyJySTbku1kxBWQ%3D%3D)

Back to top

* * *

### Using GitHub Desktop

1. Go to **Repository-&gt;Repository Settings** and change the URL.

![](https://students.senecapolytechnic.ca/attachment?file=j0Z9QY%2BEb0D5AJlM3QBfxQ%3D%3D)
2. Enter the new repository location, and click **SAVE**.

![](https://students.senecapolytechnic.ca/attachment?file=MWSTjM3XNjku1JLFv9Qpfw%3D%3D)

Back to top

* * *

#### Change your account on GitHub Desktop

1. Click on **Options**

![](https://students.senecapolytechnic.ca/attachment?file=MNAavHyLBzaT5BtG8yb0aA%3D%3D)
2. If it is pointing to a different account. Click on "**Sign into GitHub Enterprise**". 

![](https://students.senecapolytechnic.ca/attachment?file=upLmRYQAw1X78BDpJ%2B%2Fsaw%3D%3D)
3. Enter **https://github.com/Seneca-Polytechnic** and click "**Continue**".

![](https://students.senecapolytechnic.ca/attachment?file=yFnjp7O%2F%2BetP5j6O7G0FfA%3D%3D)

Back to top

* * *

### Using Git Bash Shell

1. Run "git remote -v" to check the current remote origin.
2. If necessary to point to a new location, run "git remote set-url origin" and the URL of the new location.

![](https://students.senecapolytechnic.ca/attachment?file=iQeTsHK6A8JqDw8o19KVMg%3D%3D)

Back to top

## Attachments

- [image_25453214921714138054618.png](https://students.senecapolytechnic.ca/attachment?file=4%252Bx0P32uQfQuXOd4CgcF0g%253D%253D)
- [image_78245278631714138074900.png](https://students.senecapolytechnic.ca/attachment?file=KjLt%252FHIum5pTo3I4LV2nhA%253D%253D)
- [image_61734473241714138089918.png](https://students.senecapolytechnic.ca/attachment?file=U08E0YnQKs75Q57bqTA9AQ%253D%253D)
- [image_87653466951714138118391.png](https://students.senecapolytechnic.ca/attachment?file=e4gc01eEyJySTbku1kxBWQ%253D%253D)
- [image_82485231121714138181504.png](https://students.senecapolytechnic.ca/attachment?file=j0Z9QY%252BEb0D5AJlM3QBfxQ%253D%253D)
- [image_51702577931714138198423.png](https://students.senecapolytechnic.ca/attachment?file=MNAavHyLBzaT5BtG8yb0aA%253D%253D)
- [image_7599518541714138207391.png](https://students.senecapolytechnic.ca/attachment?file=MWSTjM3XNjku1JLFv9Qpfw%253D%253D)
- [image_62222628021714138501724.png](https://students.senecapolytechnic.ca/attachment?file=iQeTsHK6A8JqDw8o19KVMg%253D%253D)
- [image_37447296421714162175328.png](https://students.senecapolytechnic.ca/attachment?file=upLmRYQAw1X78BDpJ%252B%252Fsaw%253D%253D)
- [image_32347043731714162230983.png](https://students.senecapolytechnic.ca/attachment?file=yFnjp7O%252F%252BetP5j6O7G0FfA%253D%253D)
