O'Reilly logo

Mastering Vim by Ruslan Osipov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Cloning an existing repository

If you already have code in a remote repository (for example, on GitHub), all you need to do is "clone" it—make a local copy. Find the repository URL, either over HTTPS (for example, https://github.com/vim/vim.git) or SSH (for example, git@github.com:vim/vim.git). Execute the following command (replacing <url> with the repository URL):

$ git clone <url>

This should download the repository to a directory with the project name on your machine.

Your local and remote repositories will now operate independently. If you want to update your local repository with changes from the remote repository (the one you cloned), you'll have to run git pull --rebase.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required