Git 使用问题 - win7 git bash下git pull失败
2016-04-23 10:51
411 查看
win7 旗舰版,从github上pull代码时,git bash命令出现错误
解决办法:
git version 2.6.4.windows.1 下可使用双引号
故障原因:
参见: http://stackoverflow.com/questions/30474447/git-fatal-i-dont-handle-protocol-http
在 git clone 和 http://... 之间看起来是一个空格,但它实际上是一个特殊的Unicode字符
删去这个字符,输入真正的空格后,命令可以使用了。
真正的命令应该是这样的:
Administrator@rust-PC /g/rust_proj/cardslib (master) $ git --version git version 2.8.0.windows.1 Administrator@rust-PC /g/rust_proj/cardslib (master) $ git pull https://github.com/gabrielemariotti/cardslib.git fatal: I don't handle protocol 'https'
解决办法:
Administrator@rust-PC /g/rust_proj/cardslib (master) $ git pull 'https://github.com/gabrielemariotti/cardslib.git'
git version 2.6.4.windows.1 下可使用双引号
故障原因:
参见: http://stackoverflow.com/questions/30474447/git-fatal-i-dont-handle-protocol-http
在 git clone 和 http://... 之间看起来是一个空格,但它实际上是一个特殊的Unicode字符
删去这个字符,输入真正的空格后,命令可以使用了。
真正的命令应该是这样的:
vi t.txt # copy+paste the line python open('t.txt').read() git clone \xe2\x80\x8b\xe2\x80\x8bhttp://...
相关文章推荐
- shell预备知识
- shell中命令之间数据的传递
- Shell
- Shell Step by Step (4) —— Cron & Echo
- Ubuntu下vi编辑器按方向键变成^B^C^D的解决方法
- shell 中一些数组的使用方法
- shell命令将hbase数据导出到文本文件
- Bash 快捷键
- Shell中创建序列和数组(list、array)的方法
- makefile shell下实现自动编译的脚本语言!
- Shell中read的选项及用法
- -bash: !": event not found
- -bash: !": event not found
- 有关shell
- 安装zsh
- shell学习笔记,tr
- shell脚本编程
- Linux shell 知识记录
- Jmeter使用BeanShell进行关联
- shell脚本基础