error: Could not remove config section 'remote.origin'
表示该文件不存在,但这显然不是这种情况。$ git remote -v
origin https://github.com/harrisongill/livepost.git (fetch)
origin https://github.com/harrisongill/livepost.git (push)
$ git remote rm origin
error: Could not remove config section 'remote.origin'
$ git remote set-url origin https://github.com/harrisongill/europeanexplorer.git
$ git remote -v
origin https://github.com/harrisongill/livepost.git (fetch)
origin https://github.com/harrisongill/livepost.git (push)
origin https://github.com/harrisongill/europeanexplorer.git (push)
$ git remote rm origin
$ git remote -v
origin https://github.com/harrisongill/livepost.git (fetch)
origin https://github.com/harrisongill/livepost.git (push)
编辑:添加git配置
$git config --list
Harrisons-MacBook-Pro:European Explorer harrison$ git config --list
user.name=Harrison Gill
user.email=my email
remote.origin.url=https://github.com/harrisongill/livepost.git
core.repositoryformatversion=0
core.filemode=true
core.logallrefupdates=true
core.precomposeunicode=true
.git/config
文件中的[remote "origin"]
部分。 - Chris