xiao127
xiao127
  • 发布:2017-07-31 08:50
  • 更新:2017-07-31 08:50
  • 阅读:3072

git 的 "Push to Upstream" 变灰无法使用的解决方法

分类:HBuilder

使用HBuilder 在本地创建项目后,当分享到git云端时,往往会出现无法提交到远程服务的问题(应该是git插件的原因)。

解决方法:
到该项目的根目录中的 ".git" 文件夹中找到 "config" 文件,打开并添加以下代码,已有的代码不用重复覆盖,填上你的git地址。
[core]
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[remote "origin"]
url = 你的git地址
fetch = +refs/heads/:refs/remotes/origin/
[branch "master"]
remote = origin
merge = refs/heads/master
rebase = false

如果依然不能提交到远程服务,可参考该文章:http://blog.csdn.net/chenshun123/article/details/46756087

0 关注 分享

要回复文章请先登录注册