clone: Clone a Git repository

Description Usage Arguments Value Examples

View source: R/fgit.R

Description

Clone a Git repository

Usage

1
clone(url, local_path, gitee = FALSE, reset_remote = FALSE, ...)

Arguments

url

The remote repository to clone

local_path

Local directory to clone to.

gitee

If TRUE, clone repository from Gitee.

reset_remote

if TRUE, reset GitHub repository remote url.

...

Other arguments passing to git2r::clone

Value

Nothing

Examples

1
2
3
4
5
6
7
x <- file.path(tempdir(), "ezcox")
if (dir.exists(x)) rm_paths(x)
clone("ShixiangWang/ezcox", x, reset_remote = TRUE)

y <- file.path(tempdir(), "tinyscholar")
if (dir.exists(y)) rm_paths(y)
clone("ShixiangWang/tinyscholar", y, gitee = TRUE)

ShixiangWang/wfun documentation built on Dec. 31, 2020, 4:31 p.m.