• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Git - Intro to the Basics of DVCS
 

Git - Intro to the Basics of DVCS

on

  • 9,652 views

A quick intro to the basics of the Git source code control system and Distributed Version Control Systems (DVCS)

A quick intro to the basics of the Git source code control system and Distributed Version Control Systems (DVCS)

Statistics

Views

Total Views
9,652
Views on SlideShare
9,634
Embed Views
18

Actions

Likes
7
Downloads
108
Comments
0

1 Embed 18

http://www.slideshare.net 18

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Git - Intro to the Basics of DVCS Git - Intro to the Basics of DVCS Presentation Transcript

    • The Git source code control system Dueling Coders by Matthew McCullough & Tim Berglund
    • SVN Git
    • Why Another? Not just for versioning source Distributed Version Control Systems (DVCS) Value of centralized + decentralized Easy merging from many branches Doesn’t pollute 100,000 artifacts
    • Git Going
    • Getting Git • Cygwin • MacPorts • Distro-specific package manager • Binaries
    • Username Setup git config --global user.email matthewm@ambientideas.com
    • URL Styles • Public Clone URL (Git Protocol) git://github.com/matthewmccullough/helloworld.git • Private Clone Path (SSH Protocol) git@github.com:matthewmccullough/helloworld.git • Filesystem Path /users/mccm06/projects/helloworld.git
    • Cloning Repos • Command to retrieve a remote repo • Works against Git and SVN
    • IDE Tools • EGit, Eclipse Plugin Update Site http://www.jgit.org/update-site http://github.com/guides/using-the-egit-eclipse-plugin-with-github • Git4Idea Get via plugins menu • Netbeans http://git.or.cz/gitwiki/NetBeansPlugin
    • Sharing Repos
    • Serve git help daemon
    • Serve git daemon --export-all --base-path=.
    • Free Git Hosting Github http://github.com Gitorious http://gitorious.org
    • Sharing Demo
    • Add, Checkin git add *.java git commit -m‘Did some work’
    • Switch Branch, Checkout git branch ANEWBRANCH git checkout ANEWBRANCH
    • Push git push origin master
    • Pull git pull origin master
    • Branching
    • Just Branches? Core idea of DVCS Same as always, but less painful Branches are local Branch for every feature Main is for generals
    • Branching Demo
    • Merge git merge ANEWBRANCH (destination = current branch)
    • Conflicts
    • Squash git merge --squash ANEWBRANCH (destination = current branch)
    • Tag git tag VERSION1.0
    • Cherry Pick git cherry-pick -r e8ac5ed693 (destination = current branch)
    • Resources
    • Documentation • Wiki has the most up to date info. http://git.or.cz/gitwiki/ InterfacesFrontendsAndTools
    • How To Guides • http://github.com/guides/home
    • Quick Reference • http://zrusin.blogspot.com/2007/09/git- cheat-sheet.html
    • Q&A