This repository exists to get people used to git commands and the GitHub interface.
The following steps are required of anybody participating in this introduction.
Note that lines beginning with $
are shell commands, and the lines following
it are example output. Do not type the $
prompt.
Begin by setting the USER variable to your GitHub username:
$ export USER=...
Or just note that whenever you see $USER
, you're supposed to put in your
username.
A repository is a directory, its contents, and its history.
A commit is a snapshot of the directory contents. A commit usually has one parent, sometimes two, and rarely zero.
The history of the repository is a collection of commits.
This page will see you through most situations you're likely to run into: Git Cheat Sheet
This file is written in Markdown, a simple markup language.