R/branch.R
, R/branch_create.R
, R/branch_delete.R
branch.Rd
branch_create
- creates a new branch from an existing GitHub repo.
branch_delete
- deletes a branch from an existing GitHub repo.
branch_remove
- previous name of branch_delete
, deprecated.
branch_create(repo, branch = "master", new_branch) branch_delete(repo, branch) branch_remove(repo, branch)
repo | Github repository address in |
---|---|
branch | Repository branch to use. |
new_branch | Name of branch to create. |
if (FALSE) { repo_create("ghclass-test", "test_branch", auto_init=TRUE) branch_create("ghclass-test/test_branch", 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) }