0% found this document useful (0 votes)
87 views9 pages

1 Git Fundamentals m0 Slides

This document provides an introduction to Git, including a brief history of version control systems, an overview of Git's advantages as a distributed version control system, and instructions for installing and configuring Git. It discusses how Git was created by Linus Torvalds to address limitations with the version control system previously used for Linux kernel development.

Uploaded by

sasirekha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
87 views9 pages

1 Git Fundamentals m0 Slides

This document provides an introduction to Git, including a brief history of version control systems, an overview of Git's advantages as a distributed version control system, and instructions for installing and configuring Git. It discusses how Git was created by Linus Torvalds to address limitations with the version control system previously used for Linux kernel development.

Uploaded by

sasirekha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Introduction to Git

James Kovacs
jameskovacs.com
Overview

 Brief history of version control


 Overview of Git
 Installing Git
 Configuring Git
A Brief History of Version Control

 First Generation
 Single-file
 No networking
 e.g. SCCS, RCS
 Second Generation
 Multi-file
 Centralized
 e.g. CVS, VSS, SVN, TFS, Perforce
 Third Generation
 Changesets
 Distributed
 e.g. Git, Hg, Bazaar, BitKeeper
 Further reading
 http://www.ericsink.com/vcbe/html/history_of_version_control.html
Advantages of DVCS

 Different topologies
 Centralized
 Developers push changes to one central repository
 Hierarchical
 Developers push changes to subsystem-based repositories
 Sub-system repositories are periodically merged into a main repository
 Distributed
 Developers push changes to their own repository
 Project maintainers pull changes into the official repository
 Backups are easy
 Each clone is a full backup
Advantages of DVCS

 Reliable branching/merging
 Feature branches
 Always work under version control
 Applying fixes to different branches
 Full local history
 Compute repository statistics
 Analyze regressions
 New ideas
 Deployment
 git push heroku prod_branch
About Git

 Created by Linus Torvalds, who also created Linux


 Prompted by Linux-BitKeeper separation
 Started in 2005
 Written in Perl and C
 Runs on Linux, OS X, Windows, and many other operating systems
 Design goals
 Speed
 Simplicity
 Strong branch/merge support
 Distributed
 Scales well for large projects
Installing Git

 Windows
 msysGit (http://msysgit.github.com)
 Mac OSX
 brew install git
 DMG (http://git-scm.com/download/mac)
 Linux
 apt-get install git-core (Debian/Ubuntu distros)
 yum install git-core (Fedora distros)
 For other distros, check your package manager
Configuring Git

 System-level configuration
 git config --system
 Stored in /etc/gitconfig or c:\Program Files (x86)\Git\etc\gitconfig
 User-level configuration
 git config --global
 Stored in ~/.gitconfig or c:\Users\<NAME>\.gitconfig
 Repository-level configuration
 git config
 Stored in .git/config in each repo
Summary

 Brief history of version control


 Advantages of DVCS
 Overview of Git
 Installing Git
 Configuring Git

You might also like