Equivalent to "svn checkout" for git?

Which git command should be used for svn checkout equivalent?

 git checkout(?) 

Many thanks!

+7
git git-checkout svn svn-checkout
source share
2 answers

This is exactly what I wanted:

IOS

 $ 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 Ultimate Practical Guide

+11
source share

git clone is more like an svn checkout than git checkout . git checkout just checks the branch or commit from your local repository. git clone creates a new copy of the remote repository.

+22
source share

All Articles