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
Post a Comment