Git/Github, moving and properly updating a repo -


i moved git repo https://github.com/username/testrepo.git https://github.com/companyname/testrepo.git , need more work on gem. when go directory on local machine , type git remote -v still says origin https://github.com/username/testrepo.git.

my question is, proper way me update remote new location , begin working again?

first remove origin remote:

git remote rm origin 

then rename this:

git remote set-url origin git@github.com:companyname/testrepo.git 

source: how rename repository on github?


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -