Git Commit Best Practices for Our Repository #24
kmesiab
announced in
Announcements
Replies: 1 comment
-
When committing changes that resolve a particular issue, include the issue number in the commit message. This practice facilitates tracing the resolution of the issue through the commit history by enabling efficient search (grep) for relevant commits. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Git Commit Best Practices for Our Repository
Our repository adheres to a set of best practices for Git commits. These practices are designed to ensure a clean, readable, and manageable commit history, which is crucial for effective collaboration and project maintenance. The following guidelines are to be followed by all contributors:
Quick Tips:
make lint
before committing to ensure your code is properly formatted.feat|bugfix|docs|style|refactor|perf|test
1. Rebase, Never Merge Commits
main
ormaster
).git pull --rebase
instead ofgit pull
to avoid unnecessary merge commits.2. Declarative Commit Message Tone
3. Code Quality
Run
make lint
before committing to ensure your code is properly formatted.Additional Guidelines:
3. Atomic Commits
4. Meaningful Commit Messages
5. Branch Naming Conventions
feature/login-authentication
.Beta Was this translation helpful? Give feedback.
All reactions