如何使用 SVN/Tortoise 从 Google Code 下载代码?

我刚刚看到一个非常酷的 WPF Twitter 客户端,我认为是开发的羊群代码播客家伙 HerdingCode称为 风趣。(或者至少,我看到很多这样的人在使用这个客户端)。这个项目目前发布在谷歌代码。

Google Code 上的许多项目都使用 Subversion 作为版本控制系统(包括 Witty)。由于从未使用过 Subversion,我不知道如何下载代码。

在这个项目的源代码页面(谷歌代码机智源)上,它给出了以下说明:

非成员可以通过 HTTP 匿名签出只读工作副本
Svn checkout http://wittytwitter.googlecode.com/svn/trunk/ wittytwitter-read-only

我很困惑,我应该在哪里输入上面的命令,以便我可以下载代码。

我已经安装了 SVN 和 Tortoise (我对它们几乎一无所知)。

谢谢你的帮助,或者只是给我指明了正确的方向。

Ed (@emcpadden)

161079 次浏览

Create a folder where you want to keep the code, and right click on it. Choose SVN Checkout... and type http://wittytwitter.googlecode.com/svn/trunk into the URL of repository field.

You can also run

svn checkout http://wittytwitter.googlecode.com/svn/trunk

from the command line in the folder you want to keep it (svn.exe has to be in your path, of course).

Right click on the folder you want to download in, and open up tortoise-svn -> repo-browser.

Enter in the URL above in the next window.

right click on the trunk folder and choose either checkout (if you want to update from SVN later) or export (if you just want your own copy of that revision).

After you install Tortoise (separate SVN client not required), create a new empty folder for the project somewhere and right click it in Windows. There should be an option for SVN Checkout. Choosing that option will open a dialog box. Paste the URL you posted above in the first textbox of that dialog box and click "OK".

If you have Tortoise SVN, like I do, take the google link, and ONLY copy the URL.

Regular- (svn checkout http://wittytwitter.googlecode.com/svn/trunk/ wittytwitter-read-only)

Modified to URL- (http://wittytwitter.googlecode.com/svn/trunk/ wittytwitter)

Create a folder, right click the empty space. You can Browse Repo or just download it all via checkout.

I don't know whether you have to be a Google member or not, but I signed up just in case. Have fun with the code.

Misanthropy

  • Download the svn binaries
  • unpack them somewhere and add the bin folder to your PATH environment variable
  • open a command line console (cmd.exe)
  • enter than "svn checkout ...." command there
    • make sure to first cd to the place where you want to download (i.e checkout) the projects' code.

If you are behind a firewall you will have to configure the Tortoise client to connect to it. Right click somewhere in your window, select "TortoiseSVN", select "settings", and then select "network" on the left side of the panel. Fill out all the required fields. Good luck.

Select Tortoise SVN - > Settings - > NetWork

Fill the required proxy if any and then check.

See my answer to a very similar question here: How to download/checkout a project from Google Code in Windows?

In brief: If you don't want to install anything but do want to download an SVN or GIT repository, then you can use this: http://downloadsvn.codeplex.com