What git command should I use to be equivalent to svn checkout
?
git checkout(?)
Many thanks!
What git command should I use to be equivalent to svn checkout
?
git checkout(?)
Many thanks!
git clone
更像是svn checkout
比git checkout
. git checkout
只需从本地存储库中签出分支或提交。 git clone
制作远程存储库的新副本。
这正是我想要的:
SVN
$ svn checkout svn://foo.googlecode.com/svn/trunk foo
# make your changes
$ svn commit -m "my first commit"
胃肠道
$ git clone git@github.com:pjhyett/foo.git
# make your changes
$ git commit -a -m "my first commit"
$ git push