Skip to content

Git 是版本存档系统

bash
git status        # 哪些文件变了
git diff          # 每一行具体怎么变
git add docs/     # 选择进入本次提交的内容
git commit -m "拆分知识页面" # 创建版本
git push          # 推送到 GitHub

branch 是平行开发路线,commit 是其中一个存档点,GitHub 是远程仓库。AI 修改后先看 diff,再决定是否保留。

git add 会把代码发布到线上吗?

答案:不会。它只选择下一次 commit 的内容;push 才同步远端,部署又是另一层。

写给想驾驭 AI,而不只是依赖 AI 的 Vibe Coder。