create_repo {gitgadget} | R Documentation |
Create the main repo from a local directory
Description
Create the main repo from a local directory
Usage
create_repo(
username = Sys.getenv("git.user"),
token = Sys.getenv("git.token"),
repo = basename(getwd()),
base_dir = dirname(getwd()),
groupname = "",
pre = "",
ssh = FALSE,
server = "https://gitlab.com/api/v4/"
)
Arguments
username |
Username |
token |
Token (e.g., Sys.getenv("git.token") or Sys.getenv("GITHUB_PAT")) |
repo |
Name of the repo (assignment) |
base_dir |
Base directory for the repo. file.path(directory, assignment) should exist |
groupname |
Group to create on GitLab (defaults to user's namespace) |
pre |
Pre-amble for the repo (assignment) name |
ssh |
Use SSH for authentication |
server |
The GitLab API server |
Details
See https://github.com/vnijs/gitgadget for additional documentation
[Package gitgadget version 0.8.1 Index]