
Git
文章平均质量分 81
火星飞鸟
学习前端ing...
展开
-
Commit Message 相关规范整理
最近在实习,写了一个小需求。本地调试没问题后,提交代码,发现一直有两个错误: subject may not be empty [subject-empty] type may not be empty [type-empty] Mentor 指出,是我提交时的 Commit Message 不规范造成的。 后来自己学习了一下 Commit Message 规范,记录成此笔记,若有不妥之处,欢迎批评指出~ 1. Commit Message 组成 按照业界流行的 Conventional Commits原创 2022-01-25 17:08:33 · 3193 阅读 · 0 评论 -
Git 常用命令
一、Git基本 1.使用前配置 (1)配置提交人姓名 git config --global user.name [提交人姓名] (2)配置提交人邮箱 git config --global user.email [提交人邮箱] (3)查看git配置信息 git config --list 2.提交 (1)在当前目录新建一个Git代码库 git init (2)新建一个目录,将其初始化为Git代码库 git init [项目名称] (3)查看文件状态 git status (4)添加文件到暂存区原创 2020-10-24 17:43:22 · 167 阅读 · 0 评论