13
Git’in Jiggy With Git With your co-host: Will Smith!

Git’in Jiggy With Git

  • Upload
    rtigger

  • View
    675

  • Download
    3

Embed Size (px)

DESCRIPTION

A brief overview of the distributed source control system known as Git

Citation preview

Page 1: Git’in Jiggy With Git

Git’in Jiggy With Git

With your co-host: Will Smith!

Page 2: Git’in Jiggy With Git

Why?

• Linux kernel devs got upset at BitKeeper because it went closed source

• Linus Torvalds (the Linux guy) designed his own distributed source control– Take CVS as an example of what NOT to do– Support a distributed workflow– Strong safeguards against corruption (accidental or malicious)– High performance

• Started development April 3rd, 2005• Was used for Linux kernel 2.6.12 (June 16th)• Version 1.0 came out on December 21, 2005

Page 3: Git’in Jiggy With Git

What’s the Deal?

• Distributed source control system– Each developer has a complete history of the

source, and could easily serve as the “master repository”

• Focused on Branching & Merging• Damn Fast

Page 4: Git’in Jiggy With Git

What a commit looks like

TimestampWed, Nov 9th, 10:37 AM

Message“Checkin’ in teh codez”

Tree Object (file) Reference(s)/dev/codez/Will_Smith.cs

Parent Reference89adf523ad1234Previous commit

Page 5: Git’in Jiggy With Git

Git is a big-ass linked list!

First! Last Commit

Page 6: Git’in Jiggy With Git

How do we keep track of everything!?

First! Last Commit

Develop!

Version 4.2!

REFERENCES!

Page 7: Git’in Jiggy With Git

Staging

Commits, How Do They Work?

First!

Develop

New Commit

Page 8: Git’in Jiggy With Git

Doing it wrong: Branching

ALL TEH FILEZ COPY OF ALL TEH FILEZ

BRANCH!

Page 9: Git’in Jiggy With Git

Doing it Right: Branching!

First!

Develop

New Branch!

Page 10: Git’in Jiggy With Git

Merge!

First! 2

1 3 4

Develop

Feature

Current Position

Merge Commit

Page 11: Git’in Jiggy With Git

All Your Rebase R Belong To Us

First!

Develop

Feature

Current Position

Page 12: Git’in Jiggy With Git

Working With RemotesOrigin

Local

“Clone” “Pull”“Push”

Page 13: Git’in Jiggy With Git

Github.com is AWESOME.