Learn to use GitHub with your friendly Vanderbilt Librarians
Source Control, the management of changes to documents, computer programs, large web sites, and other collections of information. Examples of source control tools: Subversion, Perforce, Mercurial, Git…
Git, http://git-scm.com/, is a version control system that tracks changes to files in a project over time. Git is a command line tool.
GitHub, http://github.com, is a web-based Git repository hosting service with all of the revision control and source code management of Git plus some added features. GitHub provides a web-based graphical interface and desktop as well as mobile integration. See GitHub repositories in action at https://github.com/HeardLibrary
GitHub may describe itself as the place where software is built, but software developers and computer programmers are not the only people using GitHub. Scholars in all disciplines are using GitHub to build digital projects, share data, and even using GitHub in the classroom. Below are some examples:
Open Greek and Latin Project, https://github.com/OpenGreekAndLatin Produces machine-corrected XML versions of Greek and Latin works and translations.
Syriaca.org: The Syriac Reference Portal, https://github.com/srophe A collaborative research project publishing online reference works concerning the culture, history, and literature of Syriac communities from antiquity to the present.
LOGAR: Linked Online Gazetteer of the Andean Region, https://github.com/sawernke/gazetteer-demo
Corpus Baudelaire, https://github.com/HeardLibrary/corpus-baudelaire TEI encoding of Baudelaire’s Le Fleur du Mal.
GitHub Education, https://education.github.com/ Free and discounted plans for educational use. Faculty are using GitHub instead of a traditional course management system (Blackboard, Moodle, Sakai) or using GitHub as a submission platform for student assignments.
Related Readings
The Emergence of GitHub as a Collaborative Platform for Education http://alexeyza.com/pdf/cscw15.pdf
Push, Pull, Fork: GitHub for Academics http://hybridpedagogy.org/push-pull-fork-github-for-academics/
COMP 116: Introduction to Computer Security, https://github.com/tuftsdev/DefenseAgainstTheDarkArts Course website for COMP 116: Introduction to Computer Security
Markdown, http://daringfireball.net/projects/markdown/, is a lightweight and easy-to-use syntax for styling all forms of writing on the GitHub platform.
You can use Markdown for:
.md
or .markdown
extension such as the repository Readme.md
fileGitHub.com uses its own version of the Markdown syntax that provides an additional set of useful features, many of which make it easier to work with content on GitHub.com. Visit the Mastering Markdown guide: https://guides.github.com/features/mastering-markdown/
This session will focus on interacting with GitHub in a browser environment, but future sessions will require a text editor for offline work. We recommend Atom, https://atom.io/, an open source text editor with Git and GitHub integration built in.
GitHub is free to use for public projects. A free account give you the ability to create an unlimited number of public repositories with an unlimited number of collaborators. GitHub also offers a number of personal and organizational plans for those who need to collaborate on private repositories.
Creating your free account is the first step
You have two options when creating a new repository. You can click on the + next to your profile image in the top right corner of the screen or go to the repositories tab within your profile page and click the New button.
Just a few easy steps to initialize your repository:
master
. You can work within your master branch, but creating working branches allows you to develop a feature or idea and work out all the bugs before merging it into master
(your production branch).
hello-world
and click the drop down at the top of the file list that says branch: masterreadme-edits
readme-edits
, let’s edit our README file by clicking on the pencil icon in the upper right corner of the README viewing pane. Make a change to the file and commit it!readme-edits
branch into the master
branch. Once your merge is complete you can delete your working branch.Success! You are now a GitHub user!
GitHub Guides https://guides.github.com/
GitHub Training & Guides https://www.youtube.com/user/GitHubGuides/featured
GitHub Help https://help.github.com/