Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions cheatsheets/github-foundations.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,24 +7,24 @@ description: A quick reference to commands use in the GitHub Foundations class.
This quick reference guide will be your companion for the outline and slides of the GitHub Foundations class taught by the [GitHub Training Team](http://training.github.com/) and other educational groups.

## Conventions
* `<variable>` is value you replace
* `<variable>` should be replaced with an appropriate value or text
* `$` is your command prompt
* Indented lines after the `$` line are the command's expected response
* `#` is a comment within the command example

## The Commands

### Git
Git is an open source distributed version control system invented by Linus Torvals in 2005. It is used to version the Linux kernel and is shown to be, by some research, the most popular modern version control system.
Git is an open source distributed version control system invented by Linus Torvalds in 2005. It is used to version the Linux kernel and is shown to be, by some research, the most popular modern version control system.

### GitHub
GitHub is a Git repository hosting and code collaboration platform for both open source and private projects.

### A Brief Tour of Git
Git has a unique twist on version control in which each _cloned_ copy of the repository contains all branches, tags, and commits ever saved to the project. This provides local-disk speed for almost any operation. Network operations are performed in batch and compressed before sending, thus making over-the-wire operations seem incredible fast.
Git has a unique twist on version control in which each _cloned_ copy of the repository contains all branches, tags, and commits ever saved to the project. This provides local-disk speed for almost any operation. Network operations are performed in batch and compressed before sending, thus making over-the-wire operations seem incredibly fast.

## Setup
Only two areas of setup are required to complete this course: A Git installation and free GitHub account.
Only two areas of setup are required to complete this course: A Git installation and a free GitHub account.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to maintain "free" here so users know right away there is no charge for an account.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jordanmccullough Sorted. Forced over a commit that only adds in an "a" in the sentence given they're two separate things.


### GitHub Account
GitHub accounts are free. Sign up for one at https://github.com/join.
Expand All@@ -37,7 +37,7 @@ Git can be installed as a unified GitHub GUI and command line or merely via a st
* **Linux**: Git's source code and a listing of supported package managers can be found at http://git-scm.com/download/linux.

### Git version
Verifying that Git is installed and operational can be done by requesting Git to display it's current version using this command:
Verifying that Git is installed and operational can be done by requesting Git to display its current version using this command:

```
$ git --version
Expand All@@ -47,7 +47,7 @@ $ git --version
Git's configuration is saved in one of three plain text files and is easily editable with a text editor and portable to other machines by copying the configuration files.

### User information
Your name and email address are configured locally in Git and are attached to each commit. Set these accurate to receive proper attributino for your work.
Your name and email address are configured locally in Git and are attached to each commit. Set these accurately to receive proper attribution for your work.

To inspect the current settings, individually query two configuration values:

Expand All@@ -56,14 +56,14 @@ $ git config user.name
Firstname Lastname

$ git config user.email
someaccount@somedomain.com
someaccount@example.com
```

To set the same values to apply to any of your repositories:

```
$ git config --global user.name "<Firstname Lastname>"
$ git config --global user.email "<someaccount@somedomain.com>"
$ git config --global user.email "<someaccount@example.com>"
```

### Scopes
Expand DownExpand Up@@ -108,7 +108,7 @@ Create a repository in the current directory of an existing project:
git init
```

### Repository from existing dir
### Repository from existing directory
Create a repository in a brand new subdirectory:
```
git init <projectname>
Expand Down