Actions

EmSys

Git - Bare Repositories

From EdWiki

Revision as of 09:31, 23 June 2015 by Jshankar (Talk | contribs) (1 revision imported: EdWiki -- Emsys pages from Shukra)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

GitLab - Bare Repositories

  • Goals
    Learn how to create bare repositories.

Bare repositories (without working directories) are usually used for sharing).

  • Create a bare repository.
cd ..
git clone --bare hello hello.git
ls hello.git

NOTE:' Now in the work directory

The convention is that repositories ending in ‘.git’ are bare repositories. We can see that there is no working directory in the hello.git repo. Essentially it is nothing but the .git directory of a non-bare repo.