Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (19.4k points)

What's the point of the Sign Off feature in Git?

git commit --signoff

When should I use it, if at all?

1 Answer

0 votes
by (27.5k points)

Example commit:

Add tests to statement printer.

Signed-off-by: Super Developer <[email protected]>

It should contain the user real name if used for an open-source project.

Let us say the branch maintainer needs to modify patches in order to merge them, he could ask the submitter to rediff, but it would be counter-productive. He can adjust the code and put his sign-off at the end so the author still gets credit for the patch and not the introduced bugs.

Add tests to statement printer.

Signed-off-by: Super Developer <[email protected]>

[[email protected]: Renamed test methods according to naming convention.]

Signed-off-by: Uber Developer <[email protected]>

Sign-off is a line at the end of the commit certifies who is the author of the commit. Its main purpose is to improve tracking of who did what, especially with patches.

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

29.3k questions

30.6k answers


104k users

Browse Categories