Getting the Code

Getting WebKit

To download a pre-built bundle containing the latest WebKit, visit WebKit Build Archives.

Browsing the Code

To browse the source code online, visit WebKit Trac.

Checking Out with Git

To work with the WebKit source tree using a Git client, install a Git client with Subversion support and run the following command on your terminal:

git clone https://github.com/WebKit/WebKit.git WebKit

Or:

git clone git@github.com:WebKit/WebKit.git WebKit

You may want your git clone to track the Subversion repository, which will allow you to map Subversion revision numbers to Git hashes. The main branch can be tracked with:

Tools/Scripts/git-webkit setup-git-svn

For information about this, and other aspects of using Git with WebKit, read the wiki page.

Checking Out with Subversion

To work with the WebKit source tree, you will need a Subversion or a Git client installed. See Installing Developer Tools for information on how to install Subversion.

OS X or Linux

  1. Open a shell.
    On OS X, you can use the Terminal App, which resides in /Applications/Utilities.
  2. You can download a snapshot of the WebKit source tree. It is updated once per day.

Type these commands to check out the WebKit source tree:

tar jxvf WebKit-SVN-source.tar.bz2
cd webkit

Note the archived checkout uses an HTTP connection. We recommend running the following command to use HTTPS instead:

svn switch --relocate http://svn.webkit.org/repository/webkit/trunk https://svn.webkit.org/repository/webkit/trunk

Alternatively, type this command to check out the WebKit source tree:

svn checkout https://svn.webkit.org/repository/webkit/trunk WebKit
  1. Run the update-webkit script to update your source tree.

Windows

See the WebKit on Windows page.

Keeping up to Date

At any time, you can rerun the update-webkit script to update your source tree.