1and1 Help Centre Categories

print article

Create a Git Repository

For Linux packages with SSH access

There are two ways to create a new repository:

  • Create a new project.
  • Use it for an existing project.

To create a repository to a working directory, enter the following command:

git init

Use this command when you want to create a working copy of your site.

To create a repository that is used only for the management of your project code, enter the following command:

git init-bare

With this repository, you can manage multiple directories that share a Git repository.

For additional information, you may want to reference: