Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The default license of a Gist

Tags:

gist

I was wondering if it is legal to use code in a public gist since Gists don't come with a license. I was not able to find any licensing info about public Gists online.

like image 436
Nithish Avatar asked Apr 04 '20 10:04

Nithish


People also ask

Are gists editable?

In the top right corner of your gist page, there will be a menu that allows for multiple functions to be performed on your gist. We can edit, delete, unsubscribe, star, embed, copy, share, and download a raw copy or zipped copy of a gist.

How do you access the gists?

You can discover public gists others have created by going to the gist home page and clicking All Gists. This will take you to a page of all gists sorted and displayed by time of creation or update. You can also search gists by language with Gist Search.

Are gists private?

Secret gists aren't private. If you send the URL of a secret gist to another enterprise member, they'll be able to see it.

Do gists support markdown?

Most of you probably know and use Github Gists for sharing Code snippets. But did you know that Gists also support Markdown? Using Markdown makes it easy to create much richer code shareable code and even allows for an easy way to create self-contained Web content.


2 Answers

According to https://softwareengineering.stackexchange.com/a/26607/354680, copyright applies by default, except for fair use. There is some irony that I quote from a quote:

"Explicitly mentioning the copyright in your work was an obligation in the past. It is no more required.

"If the country you are in is a member of berne convention, then it's automatic. You have the full rights on your work.

"The only exception to this is when your work is used in the context of "fair use". For example, I can copy/paste portion of text from internet or a book to illustrate what I explain. That's what I'm going to do right now, I'm fearless...

"'Copyright does not prohibit all copying or replication. In the United States, the fair use doctrine, codified by the Copyright Act of 1976 as 17 U.S.C. § 107, permits some copying and distribution without permission of the copyright holder or payment to same. The statute does not clearly define fair use, but instead gives four non-exclusive factors to consider in a fair use analysis. This is from WikiPedia.'

"However, not explicitly mentioning the copyright may make some companies not very well informed on their rights & obligations to use your code in good faith.

"You want to avoid all the paper work to force them to stop using your code, so as a general rules, even if it's not an obligation:

"Add copyright statement in each source code file. Attach the full license to the project."

like image 66
jtlz2 Avatar answered Oct 13 '22 09:10

jtlz2


This blog post Getting the Gist of GitHub Gist Licensing by Jeff Luszcz sheds good light on the licensing concerns that users of gists have:

The most helpful and accurate way for a Gist author to declare their license is to put the license text in the source on the Gist itself. Typically this would be at the top of the file in a comment block and would contain the copyright date and owner if required by the license.

. . .

In some cases the Gist author places a note somewhere in their GitHub site or homepage that declares the default license for their Gists. They may use text such as “The default license for all public Gists I publish is the following:” and then put the name or text of the license.

. . .

If a file, snippet or other content does not have a declared license, it is a good practice to reach out to the original author and ask what license the content is available under.

like image 27
Shahrokh Bah Avatar answered Oct 13 '22 08:10

Shahrokh Bah