gitgithubterminalcoursera-api

How do I delete the current git remote add origin link I typed?


A word is missspelled and I noticed when I tried to push something to my GitHub. Im trying to make a markdown file and push it to my GitHub but I keep getting errors. The username is right and so is the email. I entered git pull remote master and then I saw the misspelling in the error. How do I fix it or delete it and enter a new one?


Solution

  • I want to change my remote origin. GitHub is spelled wrong

    Simply type the right origin url with:

    git remote set-url origin https://github.com/<yourName>/<yourRepo>.git
    

    That avoid having to edit manually the .git/config (local config of the Git repo)