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 […]
Tag: commit
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? […]
Understanding and using Kafka’s enable.auto.commit
What is Offset Suppose we are consuming messages from a Topic, and at this time our consumer (client) is down. We realize this is not the end of the world and we can recover from outages and start consuming again. We can pick up messages right where we left off, which is pretty neat. This […]
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 […]
How many options can you think of to modify the history commit of git?
I recently encountered a git problem: I wrote a piece of content in a certain file that shouldn’t be submitted, but I didn’t pay attention and submitted it. Later, many more commits were submitted. Then I discovered this, removed it, and made a new commit. In this way, although the new commit does not have […]
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 […]
How many options can you think of to modify the history commit of git?
I recently encountered a git problem: I wrote a piece of content in a certain file that shouldn’t be submitted, but I didn’t pay attention and submitted it. Later, many more commits were submitted. Then I discovered this, removed it, and made a new commit. In this way, although the new commit does not have […]
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, […]