github no address associated with name

后端 未结 3 1819
你的背包
你的背包 2021-02-09 10:23

I kept having problem with github these days, i created a new repository on github, then from local machine I tried to push my code to github:

git remote add origin g         


        
3条回答
  •  孤街浪徒
    2021-02-09 10:27

    Look:

    fatal: remote origin already exists
    

    You already have a remote named origin, and it's still using the old, invalid URL. Open up .git/config and change the URL for the origin remote, or use the set-url subcommand for git remote:

    $ git remote set-url origin git@github.com:tmi/logger.git
    

提交回复
热议问题