跳到内容
当前位置:首页>下载方法>AI 帮你把项目改崩了?90% 的人都缺这一课:GitHub 入门

AI 帮你把项目改崩了?90% 的人都缺这一课:GitHub 入门

  • 2026-11-30 05:49:57
AI 帮你把项目改崩了?90% 的人都缺这一课:GitHub 入门

本文看点

01

Git 和 GitHub

02

核心操作全流程

03

AI 改崩后回退

「适合人群:完全没接触过 GitHub、刚开始学习编程、正在使用 Codex / Claude Code / Cursor 等 AI 编程工具,但还不会管理代码版本的新手。」

很多人第一次听到 GitHub,第一反应是:

“这是程序员才用的东西吧?”

以前这样理解可能没问题,但现在不一样了。

随着 Codex、Claude Code、Cursor 这类 AI 编程工具越来越普及,很多人即使不是专业程序员,也会让 AI 帮自己写代码、改项目、搭建网页、整理知识库、自动化处理文件。

问题也随之出现:

AI 改代码很快,但它也可能把项目改乱。

你可能遇到过这些情况:

改了几轮之后,不知道哪些文件被动过;

之前能运行的项目,突然跑不起来;

想回到上一个正常版本,却不知道怎么回退;

AI 一次性改了很多文件,自己根本看不过来;

从 GitHub 下载了别人的项目,但不知道怎么运行、怎么更新。

这时候,GitHub 和 Git 就变得非常重要。

它们不是“程序员专属工具”,而是每一个使用 AI 改代码、管理项目、保存文件的人都应该掌握的基础能力。

这篇文章会从 0 开始,带你理解并使用 GitHub。你不需要任何基础,跟着做就行。

---

01

BASICS

一、Git 和 GitHub 到底是什么?

很多新手会把 Git 和 GitHub 混在一起,其实它们不是一个东西。

你可以这样理解:

Git 是你电脑上的“版本存档工具”,GitHub 是把这些存档同步到云端,并和别人协作的平台。

再简单一点:

名称
可以理解成
主要作用
Git
本地存档工具
记录每一次代码修改
GitHub
云端代码仓库
备份代码、分享项目、协作开发

举个生活化的例子。

你在写一篇论文,每次改完都会保存一个版本:

论文初稿。docx

论文修改版。docx

论文最终版。docx

论文最终版2.docx

论文真的最终版。docx

这种方式很容易混乱。

Git 的作用就是帮你更专业地管理这些版本。你每完成一个阶段,就可以打一个“存档点”。以后如果项目被改坏了,就可以回到之前的版本。

GitHub 则像一个云端仓库。你可以把本地的 Git 存档同步到 GitHub 上,这样即使电脑出问题,项目也不会丢。同时,别人也可以看到你的项目,甚至和你一起协作。

所以记住一句话:

Git 负责版本管理,GitHub 负责云端托管和协作。

---

02

SETUP

二、准备工作:注册 GitHub、安装并配置 Git

1. 注册 GitHub 账号

打开 GitHub 官网:

...text

https://github.com

点击右上角的Sign up,然后按照提示完成注册。注册时需要填写邮箱、密码、用户名 Username。

这里重点说一下用户名。GitHub 的用户名会出现在你的项目地址里,例如:

...text

https://github.com/你的用户名/项目名

所以建议认真取一个名字,推荐风格:全小写英文、尽量简短、可以用连字符、不要用太随机的数字。例如:

...text

ken-ai

ken-dev

ken-lab

注册完成后,GitHub 会给你的邮箱发送验证邮件,点击链接完成激活。新手选择免费方案 Free 就够用了。

小提示:如果你完全不想碰命令行,GitHub 官方也提供图形化客户端 GitHub Desktop,可以用点鼠标的方式完成 clone、commit、push 等大部分操作。本文主要讲命令行方式,因为更通用、以后配合 AI 编程工具也更方便,但如果你实在抗拒命令行,可以把 GitHub Desktop 作为过渡工具。

2. 安装 Git

GitHub 是网站、云端平台,但真正用来管理本地代码版本的工具是 Git,所以注册完 GitHub 后,还需要在电脑上安装 Git。

Windows:打开 https://git-scm.com/download/win 下载安装,一路 Next 即可,默认选项基本够用。安装完成后会多一个工具 Git Bash,本文后面所有命令示例,Windows 用户都在 Git Bash 里输入即可,用法和 Mac / Linux 的终端完全一样。

macOS:用 Homebrew 安装:

...bash

brew install git

也可以直接在终端输入 git --version,如果没装,macOS 通常会弹窗提示安装命令行工具。

Linux:Ubuntu / Debian 用 sudo apt install git;CentOS / Fedora 用 sudo yum install git。

安装完成后,打开终端输入:

...bash

git --version

如果看到类似git version 2.43.0 的输出,说明安装成功。

3. 初次配置 Git:告诉 Git “你是谁”

安装好 Git 后,第一件事是配置你的名字和邮箱,因为每次提交代码时,Git 都会记录是谁提交的。

...bash

git config --global user.name "你的名字"

git config --global user.email "你的邮箱@example.com"

例如:

...bash

git config --global user.name "Ken"

git config --global user.email "ken@example.com"

建议邮箱使用你注册 GitHub 的邮箱。--global 表示全局配置,这台电脑上的所有项目都会默认使用这个身份。

配置完成后,输入 git config --list,如果能看到刚才设置的 user.name 和 user.email,说明配置成功。

---

03

REPO

三、创建你的第一个 GitHub 仓库

仓库,英文叫 Repository,简称 Repo。你可以把它理解成:

一个被 GitHub 管理的项目文件夹。

一个网站、一个脚本、一个笔记库、一个 AI 项目,都可以是一个仓库。

创建步骤:登录 GitHub 后,点击右上角的 +,选择 New repository,然后填写信息:

选项
含义
建议
Repository name
仓库名
例如 my-first-project
Description
项目描述
可选,但建议写
Public / Private
公开或私有
练习可选 Public
Add a README file
添加说明文件
建议勾选

填好后点击 Create repository,你的第一个 GitHub 仓库就创建好了。

README 是什么?README 可以理解为项目说明书,别人打开你的仓库,第一眼看到的通常就是它。一个好的 README 至少应该说明:这个项目是做什么的、如何安装、如何运行、有哪些注意事项、作者或维护信息。如果你以后想让别人看懂你的项目,README 非常重要。

---

04

WORKFLOW

四、Git 核心操作:clone、add、commit、push 全流程

Git 的命令很多,但新手一开始不用全部掌握,先记住四个最核心的命令:

...bash

git clone

git add

git commit

git push

这四个命令可以完成 80% 的基础工作。

1. clone:把远程仓库下载到本地

在 GitHub 仓库页面点击绿色的 Code 按钮,复制 HTTPS 地址(一般长这样:https://github.com/用户名/仓库名.git),然后在终端输入:

...bash

git clone https://github.com/用户名/仓库名.git

cd 仓库名

这时候,这个 GitHub 项目就已经在你的电脑上了。

2. add:把修改加入暂存区

当你修改了文件后,Git 并不会自动记录这些修改,需要先用 git add 加入暂存区:

...bash

git add 文件名     # 添加单个文件

git add .          # 添加当前目录下所有修改

git add . 后面有一个英文句号,表示当前目录下的所有修改,这是新手最容易漏掉的地方。

⚠️ 新手最容易踩的坑:把密钥传上了 GitHubgit add . 会把当前目录下所有改动都加进来,包括你可能没意识到的敏感文件,比如 .env(里面常存 API Key、数据库密码)、各种 Token、node_modules 这类不需要上传的本地文件。一旦被 commit 并 push 到 GitHub(尤其是 Public 仓库),就相当于把密码公开发到了网上,可能被扫描盗用,造成实际损失。 解决办法是在项目根目录建一个 .gitignore 文件,把不想上传的文件/文件夹名字写进去: ``text .env node_modules/ *.key ` 写进 .gitignore 的文件会被自动忽略。**用 AI 编程工具生成项目时,建议第一时间检查有没有 .gitignore`,没有就自己加一个,尤其是涉及 API Key 的项目。**

3. commit:给这次修改打一个存档

...bash

git commit -m "本次修改说明"

例如:git commit -m "更新 README 说明"。

说明不要写得太随意,比如 改了一下、111、update,更推荐写清楚具体改了什么,比如“修复登录按钮无法点击的问题”“添加用户注册页面”。以后回看历史记录时,这些说明就是你的“版本标签”。

4. push:把本地修改推送到 GitHub

...bash

git push

推送成功后,打开 GitHub 仓库页面刷新,就能看到最新修改。

⚠️ 第一次 push 大概率会失败,这是正常的 GitHub 从 2021 年起就不再支持用账号密码直接 push 了,第一次执行 git push 如果弹出让你输入密码,直接输密码通常会失败。常见解决方式有两种: - HTTPS + Token:在 GitHub 上生成一个 Personal Access Token(头像 → Settings → Developer settings → Personal access tokens),push 时用它代替密码; - SSH Key:本地生成一对 SSH 密钥,把公钥加到 GitHub 账号,之后用 SSH 地址(形如 git@github.com:用户名/仓库名.git)clone 和 push,不用再输密码。 新手照 GitHub 官方文档配一次即可,之后基本不用再管。提前知道“push 失败很正常”,能少走很多弯路。

完整提交流程演示

假设你已经 clone 了一个项目,并修改了 README 文件,完整流程是:

...bash

# 1. 查看当前项目状态

git status

# 2. 把所有修改加入暂存区

git add .

# 3. 提交一个版本

git commit -m "更新 README 说明"

# 4. 推送到 GitHub

git push

可以记成:看状态 → 加入暂存区 → 提交版本 → 推送云端。这一套流程是新手最常用的 Git 操作。

---

05

BRANCH

五、分支 Branch:在不影响主线的情况下尝试修改

分支是 Git 里非常重要的概念,你可以把它理解为:

一条平行的开发线。

假设你的主分支main 是一个稳定版本,现在你想加一个新功能,又担心改坏原来的代码,就可以开一个新分支,在新分支上随便改。改好了,再合并回 main;改坏了,直接删掉这个分支,主分支不受影响。

常用分支命令:

...bash

git branch                    # 查看当前有哪些分支

git checkout -b feature-login # 创建并切换到新分支

git checkout main             # 切换回主分支

git merge feature-login       # 把某个分支合并到当前分支

git branch -d feature-login   # 删除已经合并的分支

什么时候应该使用分支? 想添加新功能、修复 bug、让 AI 帮你大改项目、尝试不确定能不能成功的方案、临时测试某个想法时,都适合开分支。

尤其是使用 AI 编程工具时,非常建议先开分支。因为 AI 改代码速度很快,一次可能动很多文件,如果直接在主分支上改,风险会比较高。

---

06

PR

六、Pull Request:协作开发的第一步

Pull Request,简称 PR,是 GitHub 上最重要的协作机制之一。你可以这样理解:

我改了一些代码,请你帮我看看。如果没问题,就合并到项目里。

典型流程是:你 fork 别人的项目 → clone 到本地 → 创建新分支 → 在分支上完成修改 → push 到自己的 GitHub → 在 GitHub 上发起 Pull Request → 原项目作者审查 → 通过后合并。

如何发起 PR? 在你 fork 的仓库页面,切换到修改过的分支,点击 Contribute → Open pull request,写清楚你改了什么、为什么要改、是否修复了某个问题、是否有测试结果,最后点击 Create pull request。

很多开源项目都欢迎 PR,即使只是修正文档里的一个错别字,也是一种开源贡献。

---

07

RUN

七、如何使用别人的 GitHub 仓库,并让它跑起来

这是新手最常遇到的问题:在网上看到别人分享了一个 GitHub 项目(AI 工具、网站模板、自动化脚本、开源软件……),怎么用到自己电脑上?一般有三种方式。

方式一:Download ZIP

不需要 Git,最简单:打开仓库页面 → 点绿色 Code 按钮 → Download ZIP → 解压到本地。适合只想看看代码、临时运行一下、不打算长期跟进更新。缺点是只下载了某个时间点的快照,后续原作者更新了,你不能直接同步,不推荐用在经常更新的项目上。

方式二:git clone(更推荐)

clone 不只是下载文件,还会把完整的 Git 历史、分支信息一起下载下来:

...bash

cd ~/Desktop

git clone https://github.com/作者名/项目名.git

cd 项目名

以后原作者更新代码后,只需要在项目目录执行 git pull 就能同步最新版本。可以理解为:clone 是把项目完整复制到本地,pull 是后续同步更新。

方式
是否需要 Git
是否能后续更新
适合场景
Download ZIP
不需要
不方便
临时下载看看
git clone
需要
方便
长期使用和学习

方式三:Fork + Clone

如果只是想用别人的项目,clone 就够了;但如果想修改甚至把修改贡献回去,就需要 Fork(把别人的仓库复制一份到自己账号下)。

步骤:打开原仓库 → 点击右上角 Fork → GitHub 把项目复制到你的账号下 → clone 你自己账号下的那份:

...bash

git clone https://github.com/你的用户名/项目名.git

cd 项目名

如果还想跟原作者仓库保持同步,可以添加 upstream:

...bash

git remote add upstream https://github.com/原作者/项目名.git

以后同步原仓库更新:

...bash

git fetch upstream

git checkout main

git merge upstream/main

git push origin main

这套流程适合修改开源项目、提交 PR、同时保留自己的改动并同步原项目更新。

clone 下来之后,怎么运行项目?

很多新手以为把项目下载下来就能直接运行,其实不一定,大部分项目都需要先安装依赖。第一步一定是认真读 README,它通常会告诉你:项目是做什么的、需要什么环境、如何安装依赖、如何启动、常见问题怎么解决。

也可以通过项目里的文件判断类型:

看到的文件
项目类型
常用命令
package.json
Node.js / 前端项目
npm install
requirements.txt
Python 项目
pip install -r requirements.txt
go.mod
Go 项目
go mod download
pom.xml
Java Maven 项目
mvn install
Cargo.toml
Rust 项目
cargo build

常见启动流程:

...bash

# Node.js / 前端项目

npm install

npm run dev

# Python 项目

pip install -r requirements.txt

python main.py

# Go 项目

go mod download

go run main.go

如果 README 里写了专门的启动命令,以 README 为准。

完整实战:从发现项目到本地运行

假设你在 GitHub 上看到一个待办事项项目 todo-app,想在自己电脑上运行:

...bash

# 1. 进入你想存放项目的目录

cd ~/Projects

# 2. clone 项目

git clone https://github.com/someone/todo-app.git

cd todo-app

# 3. 安装依赖

npm install

# 4. 启动项目

npm run dev

如果后续想同步原作者更新:git pull。如果想自己改功能,建议先开分支:

...bash

git checkout -b my-feature

改完之后提交:

...bash

git add .

git commit -m "添加暗色主题"

git push

如果只是自己使用,到这里就够了;如果想贡献给原项目,就需要 Fork、Push,然后发起 PR。

---

08

ROLLBACK

八、AI 把项目改崩了怎么办?教你安全回退

前面反复提到一个观点:Git 能让你“犯错后还有路可退”。但光打存档点还不够,你还得知道存档点打了之后,出问题了要怎么用它。

1. 先看看到底改了什么

发现项目跑不起来了,别急着撤销,先搞清楚现状:

...bash

git status   # 哪些文件被改过

git diff     # 具体改了什么内容

如果是 AI 一口气改了很多文件,git diff 能帮你快速定位到底哪里出了问题,而不是凭感觉猜。

2. 撤销还没 commit 的修改

如果这次改动还没有commit,只是改乱了工作区,可以直接撤销:

...bash

git checkout -- 文件名   # 撤销单个文件的修改

git checkout -- .        # 撤销当前目录下所有未 commit 的修改

git restore --staged 文件名  # 只是把文件从暂存区退回去,不撤销内容

3. 回到之前的某个存档点

如果已经 commit 了,甚至改了好几次都不满意,先用 git log 看看历史版本:

...bash

git log --oneline

会看到类似这样的输出,每一行前面的一串字符是这个版本的编号(commit ID):

...text

a1b2c3d 添加暗色主题

9f8e7d6 开始修改前的稳定版本

5c4b3a2 更新 README 说明

想回到某个具体版本:

...bash

git reset --hard 版本编号

# 例如:git reset --hard 9f8e7d6

执行后,项目会完全恢复到那个版本当时的状态。

⚠️ `git reset --hard` 是危险命令,用之前一定要想清楚:它会把这次操作之后未提交的所有修改永久丢弃,无法找回;不确定的话先用 git status、git diff 看清现状。如果修改已经 push 到 GitHub、且有别人在用这个仓库,reset --hard 后再 push 可能造成远程历史混乱,团队协作场景更推荐用 git revert(新增一个“反向提交”来撤销改动,而不是删除历史,更安全)。

4. 更简单的思路:出问题就切回主分支

如果本来就按第五节的建议,让 AI 在新分支上改代码,回退会简单很多——改坏了,直接不合并、切回主分支就行,主分支完全没受影响:

...bash

git checkout main

这也是为什么反复建议:让 AI 大改项目之前,先开一个新分支,这样即使出问题,“回退”这个动作几乎是零成本的。

---

09

CHEATSHEET

九、新手习惯 + 命令速查表

几个值得养成的习惯

1

每完成一小步就 commit,不要等到改了几十个文件才提交,这样即使后面改坏了,也更容易回退到某个具体存档点。

2

commit message 要写清楚,不要写 update、111,而是写清楚具体改了什么,未来排查问题时会非常感谢自己当时写清楚了说明。

3

改之前先 pull,如果是团队项目或有别人也在改,动手前先 git pull 同步远程最新代码,减少冲突。

4

提交前检查有没有密钥被误传,看一眼 git status 列出的文件,确认 .env、密钥等没被意外加进来(详见第四节)。

5

让 AI 大改前,先开分支、先 commit:

...bash

git checkout -b ai-changes

git add .

git commit -m "开始修改前的稳定版本"

有了这两步,AI 改坏了也能轻松回退(做法见第八节)。

命令速查表

命令
作用
git --version
查看 Git 版本
git config --list
查看 Git 配置
git clone 仓库地址
克隆远程仓库
git status
查看当前项目状态
git diff
查看具体改动内容
git add 文件名
添加单个文件到暂存区
git add .
添加所有修改到暂存区
git commit -m "说明"
提交一个版本
git push
推送到远程仓库
git pull
拉取远程最新代码
git log --oneline
查看提交历史
git checkout -- 文件名
撤销未提交的修改
git reset --hard 版本编号
回到指定的历史版本(危险,谨慎使用)
git branch
查看分支
git checkout -b 分支名
创建并切换分支
git checkout main
切换到 main 分支
git merge 分支名
合并分支
git branch -d 分支名
删除分支

---

∞

THE END

十、为什么 AI 编程时代更要学 GitHub?

以前学 GitHub,主要是程序员的需求。但现在,AI 编程工具让更多普通人也开始接触代码项目,你可能会让 AI 帮你改网页、写脚本、搭建小工具、优化项目结构、处理数据、管理 Obsidian 插件、修改博客或知识库。

AI 的优势是速度快,但速度快也意味着风险更大——它可能一口气修改很多文件,你还没来得及看清楚,项目就已经变了样。

所以,在使用 AI 改项目之前,建议先养成三个习惯:

...bash

git checkout -b ai-changes

git add .

git commit -m "开始修改前的稳定版本"

也就是说,在让 AI 大改之前,先给当前项目打一个存档点,最好还在一个独立分支上改。这样即使 AI 改崩了,你也可以按第八节的方法,轻松回到修改前的版本,或者直接切回主分支,几乎不损失任何东西。

这就是 Git 的价值:

它不是阻止你犯错,而是让你犯错后还有路可退。

GitHub 看起来像程序员工具,但它的核心思想非常简单:把项目保存好、把每次修改记录下来、需要时可以回退、可以同步到云端、可以和别人协作。新手不用一开始就掌握所有命令,先学会这几个就够了:

...bash

git clone

git status

git add .

git commit -m "说明"

git push

git pull

git log --oneline

等这些命令用熟之后,再慢慢学习分支、PR、Fork、协作流程。

最后送给新手一句话:

只要你开始用 AI 改代码,就一定要开始学 Git。 因为 AI 可以帮你快速前进,而 Git 可以帮你安全后退。

新手最小可用流程(可以直接照做):

...bash

# 下载项目

git clone 仓库地址

cd 项目名

# 查看状态(顺便确认没有密钥被意外加入)

git status

# 添加修改、提交、推送

git add .

git commit -m "本次修改说明"

git push        # 第一次 push 需要配置 Token 或 SSH Key

# 拉取远程更新

git pull

# 出问题了,看看历史存档点,需要的话回到某个存档点

git log --oneline

git reset --hard 版本编号

这套流程,足够你迈出 GitHub 的第一步。

END

我是 Ken,热衷于分享 AI 工具、代码实践与项目管理经验,还在学习和进步。

如果你觉得今天这篇有收获,欢迎点赞、在看、转发三连,我们下篇见。

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-11-30 12:14:53 HTTP/1.1 GET : http://yeyulingfeng.com/a/506584.html
  2. 运行时间 : 0.156176s [ 吞吐率:6.40req/s ] 内存消耗:4,452.25kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=e9d9f55ea990aaa1eba17fb76764660e
  1. /www/wwwroot/yeyulingfeng.com/public/index.php ( 0.79 KB )
  2. /www/wwwroot/yeyulingfeng.com/vendor/autoload.php ( 0.17 KB )
  3. /www/wwwroot/yeyulingfeng.com/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /www/wwwroot/yeyulingfeng.com/vendor/composer/platform_check.php ( 0.90 KB )
  5. /www/wwwroot/yeyulingfeng.com/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /www/wwwroot/yeyulingfeng.com/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /www/wwwroot/yeyulingfeng.com/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /www/wwwroot/yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /www/wwwroot/yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /www/wwwroot/yeyulingfeng.com/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /www/wwwroot/yeyulingfeng.com/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /www/wwwroot/yeyulingfeng.com/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /www/wwwroot/yeyulingfeng.com/app/provider.php ( 0.19 KB )
  23. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /www/wwwroot/yeyulingfeng.com/app/common.php ( 0.03 KB )
  27. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /www/wwwroot/yeyulingfeng.com/config/app.php ( 0.95 KB )
  30. /www/wwwroot/yeyulingfeng.com/config/cache.php ( 0.78 KB )
  31. /www/wwwroot/yeyulingfeng.com/config/console.php ( 0.23 KB )
  32. /www/wwwroot/yeyulingfeng.com/config/cookie.php ( 0.56 KB )
  33. /www/wwwroot/yeyulingfeng.com/config/database.php ( 2.50 KB )
  34. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /www/wwwroot/yeyulingfeng.com/config/filesystem.php ( 0.61 KB )
  36. /www/wwwroot/yeyulingfeng.com/config/lang.php ( 0.91 KB )
  37. /www/wwwroot/yeyulingfeng.com/config/log.php ( 1.35 KB )
  38. /www/wwwroot/yeyulingfeng.com/config/middleware.php ( 0.19 KB )
  39. /www/wwwroot/yeyulingfeng.com/config/route.php ( 1.89 KB )
  40. /www/wwwroot/yeyulingfeng.com/config/session.php ( 0.57 KB )
  41. /www/wwwroot/yeyulingfeng.com/config/trace.php ( 0.34 KB )
  42. /www/wwwroot/yeyulingfeng.com/config/view.php ( 0.82 KB )
  43. /www/wwwroot/yeyulingfeng.com/app/event.php ( 0.25 KB )
  44. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /www/wwwroot/yeyulingfeng.com/app/service.php ( 0.13 KB )
  46. /www/wwwroot/yeyulingfeng.com/app/AppService.php ( 0.26 KB )
  47. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /www/wwwroot/yeyulingfeng.com/vendor/services.php ( 0.14 KB )
  53. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /www/wwwroot/yeyulingfeng.com/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /www/wwwroot/yeyulingfeng.com/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /www/wwwroot/yeyulingfeng.com/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /www/wwwroot/yeyulingfeng.com/app/Request.php ( 0.09 KB )
  84. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /www/wwwroot/yeyulingfeng.com/app/middleware.php ( 0.25 KB )
  86. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /www/wwwroot/yeyulingfeng.com/route/app.php ( 1.72 KB )
  100. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /www/wwwroot/yeyulingfeng.com/app/controller/Index.php ( 5.22 KB )
  104. /www/wwwroot/yeyulingfeng.com/app/BaseController.php ( 2.05 KB )
  105. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /www/wwwroot/yeyulingfeng.com/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /www/wwwroot/yeyulingfeng.com/runtime/temp/44b959ca79ad33496f044db2c231b11d.php ( 8.29 KB )
  140. /www/wwwroot/yeyulingfeng.com/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.004244s ] mysql:host=172.18.0.4;port=3306;dbname=no_yeyulingfeng;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001123s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000624s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000548s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000895s ]
  6. SELECT * FROM `set` [ RunTime:0.000489s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000971s ]
  8. SELECT * FROM `article` WHERE `id` = 506584 LIMIT 1 [ RunTime:0.000767s ]
  9. UPDATE `article` SET `lasttime` = 1796012093 WHERE `id` = 506584 [ RunTime:0.020031s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 64 LIMIT 1 [ RunTime:0.004800s ]
  11. SELECT * FROM `article` WHERE `id` < 506584 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.003304s ]
  12. SELECT * FROM `article` WHERE `id` > 506584 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000598s ]
  13. SELECT * FROM `article` WHERE `id` < 506584 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.001213s ]
  14. SELECT * FROM `article` WHERE `id` < 506584 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.001182s ]
  15. SELECT * FROM `article` WHERE `id` < 506584 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.000969s ]
0.174181s