dev-resources.site
for different kinds of informations.
Good commit message V/S Bad commit message 🦾
Published at
7/16/2024
Categories
github
git
commit
development
Author
sourav_codey
Author
12 person written this
sourav_codey
open
When developers are pushing their code to VCS(Version Control System) such as Git. If you are working in any industry for production level code.
One should learn to write better commit message and make it a habit so that it is easy for co-developers to understand the code just by seeing the commit message.
You can use git log command to check all the commit messages, I bet you will come to see “Yep… I have absolutely no idea what I meant by ‘Fix style’ 6 months ago.” that doesn’t make any sense, what is fixed, what is the issue. 🥴
Structure of Git commit message
Condensed
git commit -m <message>
Detailed
git commit -m <title> -m <description>
Tips for writing commit message
- Use first letter as capital and rest as lowercase (title case).
- Use type of commit message e.g. bugfix, error, refactor, bump, config.
- Commit length of body must be 50 characters and description must be at least 72 characters.
- Be specific, don’t use worked, developed, thought, rather be direct, “fix”.
The commit type can include the following:
- feat – a new feature is introduced with the changes
- fix – a bug fix has occurred
- chore – changes that do not relate to a fix or feature and don't modify src or test files (for example updating dependencies)
- refactor – refactored code that neither fixes a bug nor adds a feature
- docs – updates to documentation such as a the README or other markdown files
- style – changes that do not affect the meaning of the code, likely related to code formatting such as white-space, missing semi-colons, and so on
- test – including new or correcting previous tests
- perf – performance improvements
- ci – continuous integration related
- build – changes that affect the build system or external dependencies
- revert – reverts a previous commit
commit Article's
30 articles in total
Why I Built commit-ai: A Story About Git Security and Team Safety
read article
使用 AI 自動生成 Git Commit 訊息
read article
# How to write good commit messages
read article
Conventional Git Commits With Best Practices.
read article
Understanding Git Rebase Merge: Chronological vs Logical Order and Commit History
read article
Improving Commit Message Quality in VSCode with Copilot
read article
TIL how to see the entire commit column on GitLab using JS
read article
Why Going Back in Git Doesn't Have to Be Scary
read article
🤖 Use AI to speed up writing commit messages (bonus: custom prompt for improved generation)
read article
How to commit
read article
Commits Semânticos: Organizando o Caos com Padrões de Mensagens
read article
Consequences of for-Git-ting to merge the master into feature branch!
read article
Git: Commit Messages
read article
Yazılım Projelerinde Düzen ve Verimlilik İçin: Conventional Commits Nedir?
read article
Good commit message V/S Bad commit message 🦾
currently reading
วิธี sign commit ด้วย GPG บน GitHub
read article
Git Together: Pro Tips for Commits and Branches
read article
Commit vs. Rollback: Database Transaction Essentials
read article
Sign Git Commits and Authenticate to GitHub with SSH Keys
read article
Developers Hate This One Weird Trick To Be Improve Their Craft
read article
Conventional Commits
read article
Cara memperbaiki commit git yang terlanjur commited
read article
Multiple SSH id
read article
💻 Semantic Commits
read article
Client side Git hooks 101
read article
How to write GIT commit messages
read article
The Power of Conventional Commits ✨✨
read article
What I've Learned About Git from Senior Colleagues (Part 2 - thoughful commit)
read article
GitHub Commits Color Scheme: Lets commit to commit.
read article
How do I make a Git commit in the past?
read article
Featured ones: