The Tao of Git Commit: Standardized Commit Message Writing Guide

1 commit message specification The commit message format includes three parts: Header, Body and Footer <type>(<scope>): <subject> <body> <footer> Header is required, Body and Footer can be omitted. 1.1 Header Type (required) type is used to describe the category of git commit, and the following identifiers are allowed. feat:New function (Feature) “Feat” is used to […]

Git sets PreCommit to submit the main project code in case of hot iteration – Windows environment

Article directory I. Introduction 2. Set PreCommit of a project (1) Steps (2) Test effect 3. Set PreCommit for multiple projects 4. FAQ (1) If you have to submit the main project code of the hot update branch, how to submit it normally? (2) How to solve the problem if there is a false alarm? […]

Git (4) underlying commands: git object, tree object, commit object

Directory 1. Knowledge review 1.1 Linux basic commands 1.2 .git folder analysis 2. git object (data object) 2.1 hash-object storage object 2.2 cat-file view objects 3. Tree object 3.1 ls-files View the staging area 3.2 update-index creates a temporary storage area 3.3 write-tree spanning tree object 3.4 Update the temporary storage area and generate the […]

Front-end engineering (editorconfig+ESLint+Prettier+StyleLint+Husky, Commitlint)

Foreword Acknowledgments: Thanks to Lai Technology By studying relevant technical articles and combining your own practice, write a note to record it. Tools used: ide project style (editorconfig) Code inspection (ESLint) Code style (Prettier) StyleLint git submission specifications (Husky, Commitlint) 1. IDE project specifications VSCode searches for the EditorConfig for VS Code plug-in and installs […]

[git] git command line; Commitizen standardizes git submission

git First, we need to understand a classification of the entire git process: workspace: workspace staging area: staging area/cache area local repository: version library or local warehouse remote repository: remote warehouse Create a warehouse git clone [email protected]//Copy a remote warehouse git init //Initialize the warehouse Submission process git add . //Add all files in the […]

Git guide: Submitting clean commit information

Why should we care about writing clean commit messages? Commits are the tangible building blocks of a programmer’s skills. They act as the icing on the cake for your code, and if written correctly, they bring tremendous value. Well-written commit messages become indispensable because they provide context – otherwise there would be no need for […]

Front-end project configuration prettier, eslint, lint-stages, husky, commitlint, style-lint set code writing and submission specifications

prettier Chinese website: Options · Prettier Chinese website eslint Chinese website: ESLint Chinese website github husky: https://github.com/typicode/husky commitlint.js official website: commitlint – Lint commit messages, github: GitHub – conventional-changelog/commitlint: Lint commit messages style-lint:Configuring | Stylelint github lint-staged: https://github.com/okonet/lint-staged prettier: Main functions: Format code, create new configuration files for more fine-grained configuration .prettierrc (see official website, […]