1

我将 git config 中一个遥控器的名称从labee更改为EE,现在git branch --all显示以下内容:

* master
  remotes/EE/master
  remotes/labee/master
  remotes/origin/HEAD -> origin/master
  remotes/origin/grunt-3.0-stable
  remotes/origin/master

我调用了以下命令:

git prune
git fetch -p

但他们都没有帮助。我能做些什么?我.git/config的如下:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
    ignorecase = true
    precomposeunicode = false
[remote "origin"]
    url = https://github.com/gruntjs/grunt-contrib-watch.git
    fetch = +refs/heads/*:refs/remotes/origin/*
    pushurl = https://github.com/gruntjs/grunt-contrib-watch.git
    gtPruneOnFetch = true
    gtAlwaysFetchAllTags = true
[remote "EE"]
    url = git@github.com:EE/grunt-contrib-watch.git
    fetch = +refs/heads/*:refs/remotes/EE/*
[branch "master"]
    remote = origin
    merge = refs/heads/master

请注意,这不是要求过时分支的问题之一,而是关于不存在的遥控器。

我的 git 版本是1.8.3.4 (Apple Git-47)OS X 10.9 Mavericks 上的默认版本。

4

0 回答 0