Equivalent of "svn checkout" for git?

Daniel Bonetti picture Daniel Bonetti · Sep 19, 2013 · Viewed 15k times · Source

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

git checkout(?)

Many thanks!

Answer

Carl Norum picture Carl Norum · Sep 19, 2013

git clone is more of an analogue to svn checkout than git checkout. git checkout just checks out a branch or commit from your local repository. git clone makes a new copy of a remote repository.