git_clone {git4r}R Documentation

Git Clone from Default Remote

Description

Clone another repository given as a URL of absolute filepath. Alternatively, if GIT_DEFAULT_REMOTE environmental variable has been set a list of repositories within this path is displayed and can be cloned by name.

Usage

git_clone(repo_name = "", to = "~/")

Arguments

repo_name

Name of repo to clone, leave blank to display a list of available repo names. Also accepted is the url or complete filepath to a repo to clone (identified if containing '/').

to

Local path to create local project folder in, defaults to home directory

Details

Running repo_name="" will print a list of valid repositories found at the GIT_DEFAULT_REMOTE path, and can then be re-run with one of these names to clone a local version. This is to make basic on-premises collaboration and backups more effortless. GIT_DEFAULT_REMOTE can be set in .Renviron file as per ?git_remote

Other repositories can be cloned as expected by giving a URL. Credentials are handled automatically in the same way as ?git_push.

Value

Invisible NULL


[Package git4r version 0.1.2 Index]