Git: Clone/Copy a Project

By Xah Lee. Date: . Last updated: .

Clone a Project

Clone a projet means making a copy.

cd to a directory where you want the new project dir to be, then:

git clone source_path_or_url

Example:

# get a copy of git source code (~10MB)
git clone git://git.kernel.org/pub/scm/git/git.git
# get a copy of the xah fly keys source code
git clone https://github.com/xahlee/xah-fly-keys

git

git FAQ