Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Sign Off feature in Git for?

Tags:

git

git-commit

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

git commit --signoff 

When should I use it, if at all?

like image 265
Clark Gaebel Avatar asked Dec 25 '09 22:12

Clark Gaebel


People also ask

What is signoff in git?

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

What is the use of flag in git?

GIT BRANCHES Devs commonly use --global flag to set config options for current user. Show a log of changes to the local repository's HEAD. Add --relative-date flag to show date info or --all to show all refs.

How do I change commit message?

On the command line, navigate to the repository that contains the commit you want to amend. Type git commit --amend and press Enter. In your text editor, edit the commit message, and save the commit.


1 Answers

Sign-off is a requirement for getting patches into the Linux kernel and a few other projects, but most projects don't actually use it.

It was introduced in the wake of the SCO lawsuit, (and other accusations of copyright infringement from SCO, most of which they never actually took to court), as a Developers Certificate of Origin. It is used to say that you certify that you have created the patch in question, or that you certify that to the best of your knowledge, it was created under an appropriate open-source license, or that it has been provided to you by someone else under those terms. This can help establish a chain of people who take responsibility for the copyright status of the code in question, to help ensure that copyrighted code not released under an appropriate free software (open source) license is not included in the kernel.

like image 172
Brian Campbell Avatar answered Sep 27 '22 17:09

Brian Campbell