Top Banner
An introduction to the stupid content tracker
15
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: An introduction to git

An introduction to

“the stupid content tracker”

Page 2: An introduction to git

History• Git was created to manage Linux Kernel development

• April 2005

• Linux Torvalds, Junio Hamano

• http://en.wikipedia.org/wiki/Git_(software)

Page 3: An introduction to git

What’s this git git?• Git is a free and open source distributed version

control system designed to handle everything from small to very large projects with speed and efficiency.

• Git manages changes to a tree of files over time

Page 4: An introduction to git

Why git?• Outclasses SCM tools like Subversion, CVS, Perforce, and

ClearCase

• Git is optimized for:+ Distributed development + Large file counts

+ Complex merges + Making trial branches

+ Being very fast + Being robust

Page 5: An introduction to git

Basics• Local & Remote repositories – because its distributed

• Cloning a remote repository• git clone <remote-repo-url>

• Clones a remote repository with all its history etc. (.git contains that info.)

• Initializing a local repository• git init

• Initializes git repository, creates a .git in the current dir.

Page 6: An introduction to git

Hands on with Git

• “git add .” to add all files (except .git!) – note the .• Then “git commit” for the initial commit

• Creates current branch named “master”

Page 7: An introduction to git

Push & Pull• Changes are committed to local repo. first

• Push to remote to share with others

• git push <remote-repo> <local-repo>• Initializes git repository, creates a .git in the current dir.

• Pull changes from Remote repo.

• git pull• Initializes git repository, creates a .git in the current dir.

Page 8: An introduction to git

Practice

Got 15 minutes and want to learn Git?

try.github.io

Page 9: An introduction to git

File Status Lifecycle

Page 10: An introduction to git

Github Client App

Page 11: An introduction to git

Github Client App

Page 12: An introduction to git
Page 13: An introduction to git

Reference Material

•Cheat Sheets

•Posters

Page 14: An introduction to git

Learn more about it

•Linus Torvald’s talk on git: youtube.com/watch?v=4XpnKHJAok8

Page 15: An introduction to git

Lets get rolling..