Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97327

Trying to link my VS Code with a DIFFERENT GitHub repository

$
0
0

A friend of mine had set up my visual studio code with my GitHub account which works great. I now want to move onto a new repository on GitHub but still have it linked with my VS Code but my issue is that when I do a test push with the new project, it's still pushing my changes to the repository on Git where I don't want it to go? Please can someone help me with this. Note, I do NOT have Git installed, I just use the U.I from GitHub. I want my VS Code to be linked with https://github.com/KaysHaydock/Kay-Hangman-Game.git and not the repo that I don't want to touch: https://github.com/KaysHaydock/SOFT355-HangMan.git

I now fear I may have messed up the link between my VSCode & KaysHaydock/SOFT355-HangMan.git - Is there any commands I can use to check which project is linked with what github?

Terminal:

Kayleighs-MacBook-Pro:SOFT355-HangMan-ATTEMPT-LIVE Kayleigh$ git remote add origin https://github.com/KaysHaydock/Kay-Hangman-Game.git
fatal: remote origin already exists.
Kayleighs-MacBook-Pro:SOFT355-HangMan-ATTEMPT-LIVE Kayleigh$ git push -u origin master
Counting objects: 2, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 276 bytes | 276.00 KiB/s, done.
Total 2 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/KaysHaydock/SOFT355-HangMan.git
   cec379f..6d9e280  master -> master
Branch master set up to track remote branch master from origin.

Viewing all articles
Browse latest Browse all 97327

Trending Articles