Skip to content

Mennatullah-Elsahy/Read-Share-Box

Repository files navigation

Git Rules

Git Branch naming convention:

  • Temporary Git branches:
    Team members can create and delete these branches whenever it is required. Different branch types:
  • Bug Fix
  • Hot Fix
  • Feature Branches

Commit Subject breakdown

type (scope) : title

Commit description breakdown

=> body
The desctiption...
=> footer
some text...


Notes

  • Any line of the commit message cannot be longer than 100 characters! This allows the message to be easier to read on GitHub as well as in various git tools.

  • If the commit reverts a previous commit, it should begin with revert: , followed by the title of the reverted commit. In the body it should say: This reverts commit , where the hash is the SHA of the commit being reverted. A commit with this format is automatically created by the git revert command.


Commit types

  • feat: The new feature you're adding to a particular application
  • fix: A bug fix
  • perf: A code change that improves performance
  • style: Feature and updates related to UI styling
  • refactor: Refactoring a specific section of the codebase
  • test: Everything related to testing
  • docs: Everything related to documentation
  • chore: Changes to the build process or CI/CD or auxiliary tools and libraries such as documentation generation

  • Scope

    • The scope could be anything specifying the place of the commit change. For example cms, forms, engine, etc...
    • You can use when the change affects more than a single scope.
  • Title

    • The title contains succinct description of the change
    • use the imperative, present tense: "change" not "changed" nor "changes"
    • don't capitalize first letter
    • no dot (.) at the end
  • Body

    • Just as in the title, use the imperative, present tense: "change" not "changed" nor "changes". The body should include the motivation for the change and contrast this with previous behavior.
    • In pull request add the link to the (Jira, Trello, Notion) card related to the current changes
  • Footer

    • The footer should contain any information about Breaking Changes and is also the place to reference GitHub issues that this commit closes.
    • Breaking Changes should start with the word BREAKING CHANGE: with a space or two newlines. The rest of the commit message is then used for this.

Example:

Subject:

feat(forms): perform JWT authentication before form rendering

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published