Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Scenario 1 + Minor formatting changes #44

Merged
merged 9 commits into from Jun 6, 2017
@@ -1,31 +1,43 @@
---
title: "What is git?"
title: "What is Git/GitHub?"
teaching: 10
exercises: 0
questions:
- "What is Git?"
- "What is Github?"
objectives:
- "explain why version control is useful"
- "explain the difference between git and GitHub"
- "explain the difference between Git and GitHub"
keypoints:
- "Git and Github are not the same"
---
### What is Git and GitHub?

We often hear the terms *Git* and *GitHub* used interchangeably but they are slightly different things.
We often hear the terms **_Git_** and **_GitHub_** used interchangeably but they are slightly different things.

*Git* is one of the most widely used version control systems in the world. It is a free and open source tool used for tracking changes in computer files (primarily source code for software projects) and for coordinating work on those files among distributed groups of people. It originally came about to help software developers work collaboratively on coding projects but can be and is used for managing revisions to any file type on a computer system, including text documents.
**_Git_** is one of the most widely used version control systems in the world. It is a free and open source tool that is downloaded to your local machine and is used for logging all changes made to a group of designated computer files (referred to as "git repository" or "repo" for short) overtime. It can be used locally by you alone on your computer, but is perhaps most powerful when employed to coordinate simultaneous work on a group of files shared by distributed groups of people.

When we make commits in a true version control system like Git, we can record a message explaining, in as much detail as we like, what changes we have made to a document or file. This makes it especially useful for collaborating. Rather than sending an email with a document with track changes and some comments, we can include all that information with the document itself. This makes it easy to get an overview of changes that have been made to a document by looking at a log of all the changes that have been made over time. And all earlier versions of the documents still remain in their original form, they are not overwritten, should we ever wish to 'roll back' to them.
Rather than sending an email around with a document with track changes and some comments and renaming files (example.txt, exampleV2.txt, exampleV3.text) when using Git we can include (or "commit") all that information with the document itself. This makes it easy to get an overview of changes that have been made to a document by looking at a log of all the changes that have been made over time. And all earlier versions of the documents still remain in their original form, they are not overwritten, should we ever wish to 'roll back' to them.

Git originally came about to help software developers work collaboratively on software projects but can be and is used for managing revisions to any file type on a computer system, including text documents. Once installed, interaction with Git is done through the Command Prompt in Windows, or the Terminal on Mac/Linux.

*What can understanding Git do for Librarians?*
* Enables you to contribute, collaborate and support digital research projects
* True version control

**_GitHub_** on the other hand is a popular website for hosting and sharing Git repositories remotely. It offers a web interface and offers a range of free and paid services and functionality for working with such repositories. The majority of the content that GitHub hosts is open source software, though increasingly it is being used for other projects such as open access journals, blogs, and constantly updated text books.

*What can understanding GitHub do for Librarians?*
* A place to discover and reuse ("fork") a huge amount of openly licensed digital projects and open source software
* A new and alternative means for publishing content online. Any GitHub repository can have its own project website, blog and wiki using GitHub Pages.

*GitHub* on the other hand is a popular website for hosting and sharing Git repositories, that is to say, your group of project files. The majority of the content that GitHub hosts is open source software, though increasingly it is being used for other projects such as open access journals, blogs, and constantly updated text books.

### Uses in a Library Context

One way to understand what Git and GitHub version control systems can do is to look at a few scenarios relevant to Library applications:
Consider these common library world scenarios:

Scenario 1:
#### Scenario 1: Local librarian looking to start a crowdsourcing project

You are a local librarian looking to create a crowdsourcing project allowing people to tag historical photographs. Your team looks at a few other crowdsourcing projects on the web and even though they all appear unique to each institution, they seem to have similar functionality and structure. Rather than build your version from scratch, you wish there was a way to just copy that version, and modify it to reflect your project. You notice the GitHub icon at the bottom of these pages.
A local librarian is looking to put thousands of historical photographs of the area online so that the community can help identify the people and places they depict. She combs the web for examples of existing crowdsourcing projects, and even though they all appear unique to each institution, she notices quite a few seem to have almost the exact same functionality and structure. Rather than build a whole new version from scratch herself, she wishes there was a way to just copy the code of an existing one, and modify it to reflect her project. She notices the GitHub icon at the bottom of one of the projects she likes, but clicking on the link just brings her to a confusing directory of files and oddly labeled buttons such as "Fork".

GitHub hosts open-licensed projects ... and allows any user to fork any public project. By clicking the "fork" button, any GitHub user can almost instantaneously create their own version of an existing project. That "forked" project can be used as the basis for a new project, or can be used to work out new features that can be merged back into the original. (From: [GitHub for Academics](http://www.digitalpedagogylab.com/hybridped/push-pull-fork-github-for-academics/) )