Fetch from Upstream 变灰失效
Team——>Remote——>Configure Fetch from Upstream…
Team——>Remote——>Configure Push to Upstream…
都变灰了,不能点击配置。
一直找不到原因,后来想了想,应该在.git目录下有配置文件,保存这个信息。果然找到project_name/.git/config,打开是如下内容:
[core]
repositoryformatversion = 0
filemode = false
logallrefupdates = true
而正常的项目,还有两项内容,如红色字体显示
[core]
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[remote "origin"]
url =https://github.com/peterpanzsy/BotwallAdmin.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
按照正常项目修改这个config文件后,EGIT正常了。