如何使用Git安装ThinkPHP5.1

1.打开Git终端 切换到需要安装的目录

2.开始安装

git clone --depth=1 https://github.com/top-think/think.git think_git
--depth=1 代表 不下载历史版本 去除即下载全部版本 后面跟地址 think_git为安装的目录

切换到think_git目录,并安装核心

cd think_git/
git clone --depth=1 https://github.com/top-think/framework.git thinkphp

相关文章