Commit message making reference to a task get append to the internal message thread. Allowing you to keep track of every commit referencing the task. Providing you with a history of changes made by developers.
People may choose to follow a task to receive notifications when developers are making modification to the code directly.
In Gitlab you simply need to add a new web hook in the "System Hooks" configuration.