Intro to Git and Github – Let's talk Lingo – Git was designed for the command line



Intro to Git and Github – Let's talk Lingo – Git was designed for the command line

8 1


git-and-github

This is my presentation for Maptime DC on December 16th, 2014

On Github briandaviddavidson / git-and-github

Intro to Git and Github

The basics to help get you started

Presented by Brian Davidson / @brianddavidson

Let's start with Git...

We need to talk about some of the lingo that goes along with git and how it relates to github.

History

Language created by Linus Torvalds in 2005

Used because it's lightweight, fast, and easy to use

VCS (Version Control System)

"...records changes to a file or set of files over time so that you can recall specific versions later."

Let's talk Lingo

Repository (Repo)

This is the project folder where your code will be stored

Clone

Clones a repository into a new directory

Unstaged Changes

Changes that you have made locally, but no where else

Staged Changes

Changes that are ready to be commited (but haven't been)

Commit

(can also be called a changeset)

A snapshot of your project at a specific instance

Image credit: https://git-scm.com/book/en/v2/Getting-Started-Git-Basics

Commit Message

Text describing the changes you made

Push

Pushes your commits to your original repository

Branch

A copy of the repo to use as a “virtual sandbox”

Credit: Atlassian tutorials

Forking

Copy of a project that won't affect the original

Git was designed for the command line

There are many different GUIs you can download to help

git-gui

Github

Sourcetree

Git is great for tracking code

Binary files? (PSD, PNG, JPG, etc)...not so much

Questions so far?

So, let's talk about Github

What is Github

"...a web-based Git repository hosting service"

Go Contribute!

10 Million+ Repositories

What else can I use it for?

Personal website hosting

When creating the Repo

Name it yourusername.github.com

You can even use a custom domain!

Travel Recommendations

https://github.com/dylanegan/travel

Start a blog

Github Pages and Jekyll

Geographic Data (Huzzah!)

http://tinyurl.com/MTDCGithub

Questions?

briandaviddavidson.com
briandaviddavidson@gmail.com

Presentation created using reveal.js