branch {ghclass}R Documentation

Create and delete branches in a repository

Description

Usage

branch_create(repo, branch, new_branch)

branch_delete(repo, branch)

branch_remove(repo, branch)

Arguments

repo

GitHub repository address in owner/repo format.

branch

Repository branch to use.

new_branch

Name of branch to create.

Value

branch_create()and branch_remove() invisibly return a list containing the results of the relevant GitHub API call.

See Also

repo_branches

Examples

## Not run: 
repo_create("ghclass-test", "test_branch", auto_init=TRUE)

branch_create("ghclass-test/test_branch", branch = "main", new_branch = "test")
repo_branches("ghclass-test/test_branch")

branch_delete("ghclass-test/test_branch", branch="test")
repo_branches("ghclass-test/test_branch")

repo_delete("ghclass-test/test_branch", prompt = FALSE)

## End(Not run)


[Package ghclass version 0.3.0 Index]