Showing posts from July, 2013

Viewing Google Code Git repository versions in plain text

Google provides plain text version of Git repository at different URL. This URL is in the format of This gives latest version of Git repository. To view history of a particular version use URL pattern Using this we can see a particular tagged version or a particular commit version files.

For eg. Selenium version 2.28 can be viewed using

Version number can be obtained using Browse option in the source menu of main project which can be accessed using URL pattern

Downloading source code from SVN/Git repository over HTTP

Sites hosting open source projects provides an online viewer for browsing source code without actually checking out source code using SVN/Git clients. Checking out entire repository will take long time. Also with Git there is no straight forward way to checkout only a particular directory. Cloning Git repos takes long time as Git downloads entire repository to local machine. Even with sparse checkout, Git downloads entire repository. When bandwidth is a concern, one cannot checkout entire repository.

    One can use GNU Wget to recursively download files from online code repositories. For windows this can be downloaded from

    Command to download a directory and its child directories and all files in it recursively excluding index.html is below. This will not download parent directories and files from external sites.

wget --cut-dirs=2 --level=15 --include-directories=src/main/java --recursive --no-parent --no-host-directories…