git - linked local repo to incorrect github account -


as part of coursera data scientist course set up, incorrectly linked directory, test-repo, incorrect account. so, in statement:

git remote add origin https://github.com/yourusernamehere/test-repo.git 

i incorrectly specified user name. i'm thinking can delete directory , reset again. i've researched ability either delete directory or re-link right account have not found information can me so. appreciate guidance.

to change url of remote, use git remote set-url <name> <newurl>, in example

git remote set-url origin https://github.com/yourusernamehere/test-repo.git 

removing remote , adding again suggested in comment @xwhylikethis work.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -