Cannot remove remote origin

前端 未结 3 1417
你的背包
你的背包 2020-12-04 14:33

I\'m running git 1.8.0 on OS X, and every new git repo seems to have a remote called \"origin\":

$ git init
$ git remote
origin

What\'s odd

3条回答
  •  庸人自扰
    2020-12-04 15:03

    You should be able to remove origin with

    git remote rm origin
    

    Not that you need to, you can just change the origin with set-url

    git remote set-url origin "https://..." 
    

提交回复
热议问题