![]() |
VOOZH | about |
Version control systems like Git have revolutionized the way developers collaborate on projects. However, efficient collaboration depends on sticking to certain manners that streamline the workflow and ensure code quality. Here are some important Git workflow etiquettes to follow.
Table of Content
Your branch name syntax can be similar to something like this:
name/issue#/descriptionHere name may be Your Github Id or your initial name, issue denotes the issue number and a very short description about the branch
Example:
dora/45/new-featureYou can also consider this naming convention:
A. If it's a new feature
feature/name/issue# B. If branch is for fixing new bug
bug/name/issue# Example:
new-footer/dora/251Having proper commit messages helps in increasing the readability of git logs and file history. One may consider naming your commit messages in the following categories:
Example:
feat: New xyz component addeddocs: Updated broken blog page linkYou can also make more accurate commit messages by mentioning the scope of files:
type(scope): MessageHere, type includes various categories that are discussed above, for example, feat, bug, docs, etc
Scope - represents the place where the code changes are made, for example, file-names
Example:
chore(netlify): Redirected old modelsWhen Opening a Pull Request, do consider adding the following points in the message
Example:
# Closes #412
# Changes
- Change 1
- Change 2
# Related Issues:
- Issue #410
- PR #387Here, Closes #412 will indicate to Github that merging this PR will close the issue numbered 412 successfully and Changes can be listed out with the bullets for increasing readability.