Connect to another git repository the fastest way

Viewed 12

Let's pretend I am connected to my repository on Github. And then i create another repository on Github and want to remote into that repo. Will that mean that I will not longer be remoted to my first repo or does it mean that I will be connected to 2 repositories at once?

Because I only want to work with one repo at a time, so do I have to somehow disconnect from a repository before connecting to another?

Do I have to do this everytime I connect to one of my repositories:

git remote rm origin
git remote add origin [newGithubURL]
git init  
git add . 
git commit -m "im back to my other repository now"
git push origin master
0 Answers
Related