“svn checkout”的等价物为git? [英] Equivalent of "svn checkout" for git?

查看:157
本文介绍了“svn checkout”的等价物为git?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该用什么git命令来相当于 svn checkout

  git checkout(?)

非常感谢!



SVN

  $ svn checkout svn://foo.googlecode.com/svn/trunk foo 
#进行更改
$ svn commit -m我的第一次提交

GIT

  $ git clone git@github.com:pjhyett / foo.git 
#进行更改
$ git commit -a -m我的第一次提交
$ git push

from
初学者Git:权威实用指南


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

git checkout(?)

Many thanks!

解决方案

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

这篇关于“svn checkout”的等价物为git?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆