打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
git执行pull命令时,报错

在图形界面中,执行拉取操作时,出现下面的错误。

You asked to pull from the remote 'origin', but did not specify
a branch. Because this is not the default configured remote
for your current branch, you must specify a branch on the command line.

 

解决办法:

Edit your .git/config

[branch "master"]  remote = origin  merge = refs/heads/master

 

Now you can simply git push and git pull.

 

参考地址:http://stackoverflow.com/questions/4847101/git-which-is-the-default-configured-remote-for-branch

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
git系列之---将本地的项目添加到码云仓库
git常用命令
GIT 的基本使用-常用命令
Git常用命令
Git远程操作详解
git bash 常用命令
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服