使用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)

你可能感兴趣的:(php)