Auszug aus der Git Doku:
Git Basics - Getting a Git Repository
You clone a repository with git clone <url>
. For example, if you want to clone the Git linkable library called libgit2
, you can do so like this:
$ git clone https://github.com/libgit2/libgit2
That creates a directory named libgit2
, initializes a .git
directory inside it, pulls down all the data for that repository, and checks out a working copy of the latest version. If you go into the new libgit2
directory that was just created, you’ll see the project files in there, ready to be worked on or used.
Git has a number of different transfer protocols you can use. The previous example uses the
https://
protocol, but you may also see
git://
or
user@server:path/to/repo.git
, which uses the SSH transfer protocol.
[ Source: Pro Git book. ]