********************************************************************** git-init ********************************************************************** ---------------------------------------------------------------------- Creating a new repository ---------------------------------------------------------------------- ====================================================================== Create bare repository ====================================================================== .. code-block:: bash $ git init --bare path/to/git .. code-block:: python >>> pygit2.init_repository('path/to/git', True) ====================================================================== Create standard repository ====================================================================== .. code-block:: bash $ git init path/to/git .. code-block:: python >>> pygit2.init_repository('path/to/git', False) ---------------------------------------------------------------------- References ---------------------------------------------------------------------- - git-init_ .. _git-init: https://www.kernel.org/pub/software/scm/git/docs/git-init.html