Repository navigation
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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 lintbefore committing to ensure your code is properly formatted.feat|bugfix|docs|style|refactor|perf|test1. Rebase, Never Merge Commits
mainormaster).git pull --rebaseinstead ofgit pullto avoid unnecessary merge commits.2. Declarative Commit Message Tone
3. Code Quality
Run
make lintbefore committing to ensure your code is properly formatted.Additional Guidelines:
3. Atomic Commits
4. Meaningful Commit Messages
5. Branch Naming Conventions
feature/login-authentication.All reactions