Learn R Programming

gert (version 0.3)

repository: Create or open a git repository

Description

Use git_init() to start a new repository or git_clone() to download a repository from a remote.

Usage

git_init(path = ".")

git_open(path = ".")

git_find(path = ".")

git_info(repo = ".")

Arguments

path

directory of the git repository. For git_init or git_clone this must be a non-existing or empty directory.

repo

a path to an existing repository, or a git_repository object as returned by git_open, git_init or git_clone.

Details

You may use git_find() and git_open() to explicitly discover and open existing git repositories, but this is usually not needed because all gert functions also take a path argument which implicitly opens the repo.

See Also

Other git: branch, commit, fetch, git_config, signature