Buy it, or take it?
Has a colleague proposed a free repository in place of a paid product? This lesson teaches you which files to read before you answer.
The scene
At nine on Monday a man at the public window was filling in an application form, the sheet for a copy of a decision, with a pen chained to the table. Its second page asked for his name and address again. Halfway down, the pen died. He shook it and blew on it, the queue waiting, until Najla, who prepares the court's forms, lent him hers.
"That's my application," he said, returning it. "On Sunday I'm back with my mother's. Same form?"
"Same form."
All the court's forms were that long, so Ibrahim, the head clerk, who handles the court's files, had a company's offer on his desk: a "ready-made forms pack", paid yearly. On top lay a note from the court president, the judge who runs the court: "Your recommendation, Wednesday, 12:00."
That afternoon Faris, the new employee, brought his laptop: a on GitHub of Arabic application forms, made by volunteers, free.
"And who said we can take it?" asked Ibrahim.
At ten on Tuesday they went down to Hussam in the IT office. Below the repository's files was a page: a large heading, "Forms for everyone", then "One-page application forms for anyone serving the public. Copy a form, and put your organisation's name at the top."
"The ," said Hussam. "GitHub shows it first: what the project is and how to use it."
How was the heading made? Faris opened the file to edit: a line starting with #, and "Copy" between two stars on each side.
"," said Hussam. "Plain text with a few marks. A # makes a heading; the stars make a word bold. GitHub and comments use it too."
Then a file named LICENSE: "The , where the owners write what they allow others to do with their files."
Ibrahim read it: the volunteers let anyone copy and change the forms.
"I'll print it and attach it to the recommendation as it is. The president reads their words and decides." He paused. "Najla's drafts of the forms carry names of people from the window. If she works in our copy, do the drafts go out with the forms?"
In the court's repository Hussam opened .gitignore, two lines, one reading "drafts/". "The . Whatever it names, Git, the program that records commits, leaves out of every ; it stays on its owner's machine. The drafts folder is listed."
At 11:40 on Wednesday Ibrahim wrote one page: take the free forms, licence file attached; no need to buy the pack for now. At 12:00 it went to the president, and came back signed that afternoon. On Thursday Najla set the form on one page, with Ibrahim's small thank-you line at the bottom: "Forms for everyone".
At nine the next Sunday the man came back with his mother's application. He took the chained pen, and it wrote from the first line. He filled the one page in five minutes and read the line at the bottom. "Who are they?"
"Volunteers who made the form," said Ibrahim. "We took it from them."
The man lifted the pen on its chain. "And this?"
"This one I bought on Thursday."
The idea
Before you take anything from a repository, read the few files its owners wrote for visitors.
- : shown first, below the file list: what the project is and how to use it.
- : plain text whose few marks GitHub turns into headings, lists and bold words. READMEs, issues and comments use it.
- : a file named LICENSE where the owners write what they allow others to do with their files.
- : a file named .gitignore listing files and folders Git never commits; they stay on their owner's machine.
If you propose a repository to whoever decides, attach its licence file as its owners wrote it.
Try it yourself
- Read the README of someone else's repository. Can you tell what the project is and how to use it?
- In your repository, edit the README: a line starting with # and a space, then a word with two stars on each side. Preview it: a heading and a bold word.
- Open that repository's LICENSE file and read what its owners wrote.
- Open its .gitignore: each line names a file or folder left out of commits.
Some repositories have no licence file or ignore list. GitHub may name the licence beside the page; its text is in the file.
Where this fits
Now you know what to read before taking from another's repository. Next, your repository publishes its own public page.