Tips on version control

Hugo Demenez,code

There are a few things I recently learned that I'd like to share with you.

Let's start with something I really wanted to write about. It is a way for me to remember.

Commits should have the following structure :

TYPE(SCOPE) : Short title
 
Details about things changed with the commit

There are different types:

Reference: conventionalcommits.org (opens in a new tab)

Then, about the scope : It is a short word to define what are changes affecting

Breaking changes

If you add a ! after the scope, it means the commit is a breaking change. A breaking change is an API response change for example.

> [!NOTE]  
> Highlights information that users should take into account, even when skimming.

> [!TIP]
> Optional information to help a user be more successful.

> [!IMPORTANT]  
> Crucial information necessary for users to succeed.

> [!WARNING]  
> Critical content demanding immediate user attention due to potential risks.

> [!CAUTION]
> Negative potential consequences of an action.
© Hugo Demenez.RSS