Git
Git?


•   Really fast regardless of project size

•   Extremely flexible

•   Distributed
Distribution


•   How does it work?

•   Why use a distributed SCM?

•   Distribution and workflow
What can Git do that SVN doesn’t?
•   Branching

•   Merging

•   Tagging

•   Remotes

•   Altering

•   Use network efficiently
Moving from SVN to Git
          Action                    SVN             Git
 Create a new repository       svnadmin create     git init
Using an existing repository    svn checkout     git clone
                                                 git commit
  Commit your changes            svn commit        git push
         Add files                  svn add        git add
       Delete files               svn delete       git rm
 Get updates from others         svn update       git pull
What else we can git?
            Modify last commit                  git commit --amend
Find a revision that introduced a specific bug       git bisect
             Undo last commit                        git reset
       Quickly switch between tasks                  git stash
            Add another remote                    git remote add
         Modify previous commits                    git rebase
Questions
Try it out!

Introduction to Git

  • 1.
  • 2.
    Git? • Really fast regardless of project size • Extremely flexible • Distributed
  • 3.
    Distribution • How does it work? • Why use a distributed SCM? • Distribution and workflow
  • 4.
    What can Gitdo that SVN doesn’t? • Branching • Merging • Tagging • Remotes • Altering • Use network efficiently
  • 5.
    Moving from SVNto Git Action SVN Git Create a new repository svnadmin create git init Using an existing repository svn checkout git clone git commit Commit your changes svn commit git push Add files svn add git add Delete files svn delete git rm Get updates from others svn update git pull
  • 6.
    What else wecan git? Modify last commit git commit --amend Find a revision that introduced a specific bug git bisect Undo last commit git reset Quickly switch between tasks git stash Add another remote git remote add Modify previous commits git rebase
  • 7.
  • 8.

Editor's Notes