git使用示例
- 创建本地项目仓库
1 | |
或
1 | |
然后
找到 git-bash.exe
1 | |
并
1 | |
- 修改文件内容
git add -m "备注"git commitgit log [--stat]git diff <commit id>- 回溯:
git reset --hard <commit id>或git checkout <commit id> - 分支:
git branchgit checkout -b (develop)git checkout (master)
(干上执行)git merge (develop)
具体 git 源代码管理应用(详见与 DeepSeek 对话)
AI 写好源代码(有 gitignore)
1 | |
1 | |
1 | |
1 | |
或
1 | |
1 | |
1 | |
1 | |
也可以依靠 VScode 中的源代码管理标签