GithubHelp home page GithubHelp logo

read-share-box's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.