Reputation: 3
I know that on Git in general it is possible to enable commit templates by modifying the git config file in the .git-folder. But as these folders are hidden in DevOps is this possible or even recommended in DevOps? If it is doable on DevOps is the process different?
In Git the process should be, modify git config to include:
[commit]
template = ~/.gitmessage
Upvotes: 0
Views: 1244
Reputation: 8298
Agree with Tomasz, It is default git behavior, it's not Azure DevOps specific.
As a workaround:
Then we can check it in the commit details.
Result:
Upvotes: 2
Reputation: 1195
It is not possible to edit .git/config file and store it in the remote repo, for everyone to clone it.
You can include instruction in ReadMe on your repo to change a config with
[commit]
template = ~/.gitmessage
once someone clones it.
Upvotes: 1