Git的使用 常用命令初始化git仓库git init git add . git add 文件名 git commit -m “提交说明 git reset –hard commit规范1git commit -m "类型: 做了什么" 常见类型: 12345678feat: 新功能 fix: 修 bug docs: 文档 style: 格式、样式调整,不影响逻辑 refactor: 重构,不改变功能 test: 测试 chore: 杂项,比如配置、依赖、构建脚本 wip: 进行中的临时保存 #学习 Git的使用 http://example.com/2026/04/11/Git/ 作者 flint 发布于 2026年4月11日 许可协议 终端配置 上一篇 Please enable JavaScript to view the comments