使用Git搭建thinkPHP5.1,开发环境

 

Dell@DESKTOP-DRSBM56 MINGW64 ~/Desktop/fairey_php
第一句:$ git clone https://github.com/top-think/think fairey
Cloning into 'fairey'...
remote: Enumerating objects: 64, done.
remote: Counting objects: 100% (64/64), done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 13809 (delta 42), reused 41 (delta 21), pack-reused 13745
Receiving objects: 100% (13809/13809), 23.29 MiB | 184.00 KiB/s, done.
Resolving deltas: 100% (8312/8312), done.

Dell@DESKTOP-DRSBM56 MINGW64 ~/Desktop/fairey_php
第二句代码:$ cd fairey/

Dell@DESKTOP-DRSBM56 MINGW64 ~/Desktop/fairey_php/fairey (5.1)
$ git clone https://github.com/top-think/framework thinkphp
Cloning into 'thinkphp'...
fatal: unable to access 'https://github.com/top-think/framework/': Could not resolve host: github.com

/**这里出现问题*/

Dell@DESKTOP-DRSBM56 MINGW64 ~/Desktop/fairey_php/fairey (5.1)
$ git conifg --global http.proxy
git: 'conifg' is not a git command. See 'git --help'.

The most similar command is
        config

Dell@DESKTOP-DRSBM56 MINGW64 ~/Desktop/fairey_php/fairey (5.1)
$ git config --global http.proxy

/查询到当前设置了代理,所以我取消这个设置:

Dell@DESKTOP-DRSBM56 MINGW64 ~/Desktop/fairey_php/fairey (5.1)
$ git config --global --unset http.proxy

//再查询,已经没有了代理,然后再clone,成功了!

Dell@DESKTOP-DRSBM56 MINGW64 ~/Desktop/fairey_php/fairey (5.1)
$ git clone https://github.com/top-think/framework thinkphp
Cloning into 'thinkphp'...
remote: Enumerating objects: 68, done.
remote: Counting objects: 100% (68/68), done.
remote: Compressing objects: 100% (51/51), done.
remote: Total 52046 (delta 27), reused 40 (delta 17), pack-reused 51978
Receiving objects: 100% (52046/52046), 15.55 MiB | 139.00 KiB/s, done.
Resolving deltas: 100% (32724/32724), done.

Dell@DESKTOP-DRSBM56 MINGW64 ~/Desktop/fairey_php/fairey (5.1)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值