Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

we are moving from cvs to git. I want to know what the following cvs commands does and its output

cvs -n checkout -p -r${RELEASE} ${MODULE}

I also need git equivalent of following cvs command.

Thanks for your help

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
242 views
Welcome To Ask or Share your Answers For Others

1 Answer

In a nutshell:

   git clone url

will give you the whole repository. If then you need to checkout a specific tagged release, you can do

 git checkout tags/<tag_name>

Even better, you can checkout and create a branch

  git checkout tags/<tag_name> -b <branch name>

If you only need to clone locally a specific release, try:

     git clone --branch <tag_name> <repo_url>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...