TortoiseGit Bad file number 解决方法
来源:互联网 发布:淘宝上卖农产品怎么样 编辑:程序博客网 时间:2024/05/01 21:52
作者:zhanhailiang 日期:2015-01-07
直接使用命令行git pull操作正常,如下:
D:\vipshop\mstats\mstats-monitor>git pullUpdating 5050c42..e8b3bd9Fast-forward public/css/app.css | 30 ++++++++++++++++++ public/js/page.counts.js | 68 +++++++++++++++++++++++++++++++++-------- views/counts.html | 8 +++++ views/includes/module_list.html | 3 +- 4 files changed, 96 insertions(+), 13 deletions(-)
但是使用TortoiseGit pull时报错“/bin/sed: Bad file number”,详情如下:
git.exe pull -v --progress "origin"/libexec/git-core/git-sh-setup: line 81: /bin/sed: Bad file numberFrom http://gitlab.tools.vipshop.com/wade.zhan/mstats-monitor= [up to date] master -> origin/masterC:\Program Files (x86)\Git/libexec/git-core\git-pull: line 268: /bin/tr: Bad file numberYour configuration specifies to merge with the ref 'master'from the remote, but no such ref was fetched.git did not exit cleanly (exit code 1) (2090 ms @ 2015/1/7 10:08:05)
根据提示“Your configuration specifies to merge with the ref 'master' from the remote, but no such ref was fetched.”,指的是merge远端引用master,但是fetch不到该引用。
查了下git help pull命令详情:
git pull [options] [<repository> [<refspec>…]]
怀疑是因为缺少参数导致,尝试下手动执行完整命令,如下:
D:\vipshop\mstats\mstats-monitor>git.exe pull -v --progress "origin" masterFrom http://gitlab.tools.vipshop.com/wade.zhan/mstats-monitor * branch master -> FETCH_HEAD = [up to date] master -> origin/masterAlready up-to-date.
这里就定位到问题,应该缺省参数导致,右键菜单 TortoiseGit->Settings->Git->Edit local .git/config,在[branch "master"]修改remote = origin master,如下图:
然后就可以正常使用TortoiseGit pull了:
git.exe pull -v --progress "origin" masterFrom http://gitlab.tools.vipshop.com/wade.zhan/mstats-monitor* branch master -> FETCH_HEAD= [up to date] master -> origin/masterAlready up-to-date.Success (2121 ms @ 2015/1/7 10:08:38)
参考文章:
- http://blog.csdn.net/renfufei/article/details/41648061
0 0
- TortoiseGit Bad file number 解决方法
- 解决 TortoiseGit 诡异的 Bad file number 问题
- 解决 TortoiseGit 诡异的 Bad file number 问题
- 解决 TortoiseGit 诡异的 Bad file number 问题
- 解决 TortoiseGit 诡异的 Bad file number 问题
- tomcat bad version number in class file 的解决方法
- tomcat bad version number in class file 的解决方法
- tomcat bad version number in class file 的解决方法
- tomcat bad version number in class file 的解决方法
- Bad version number in .class file的解决方法
- Bad version number in .class file 异常解决方法
- Bad version number in .class file的解决方法
- Bad version number in .class file这个问题的解决方法
- Bad version number in .class file的解决方法
- OGG-01224 Bad file number
- Git的Bad file number
- 出现java.lang.UnsupportedClassVersionError: Bad version number in .class file问题的解决方法分析
- tomcat6.0 报错Bad version number in .class file的解决方法
- 懂得,是生命中最美的缘
- 《软件测试的艺术》--读书笔记
- 哈哈
- 最后一天
- 哈希算法中salt的作用
- TortoiseGit Bad file number 解决方法
- linux net namespace优化代码分析
- Hash-哈希/散列 基础知识梳理
- 小技巧:XSLT+XML转换HTML
- iOS之UICollectionView的使用
- ASP.NET之旅(四):IIS网站部署步骤及常见错误
- android app小白试水3-app导出成apk
- phpstorm取消自动保存并标识修改的文件为星星标记
- 如何制作wordpress短代码