gitsvngit-checkoutsvn-checkout

Equivalent of "svn checkout" for Git


What Git command should I use to be equivalent to svn checkout?

git checkout(?)

Solution

  • This is exactly what I wanted:

    SVN

    svn checkout svn://foo.googlecode.com/svn/trunk foo
    # Make your changes
    svn commit -m "my first commit"
    

    Git

    git clone git@github.com:pjhyett/foo.git
    # Make your changes
    git commit -a -m "my first commit"
    git push
    

    From Git for beginners: The definitive practical guide