R/remote.R

Defines functions delete_remote_branch

Documented in delete_remote_branch

#' @title
#' Delete a Remote Branch
#' @description
#' Delete a remote branch of a given local clone of a repo.
#' @param remote_branch Remote branch.
#' @rdname delete_remote_branch
#' @export


delete_remote_branch <-
  function(path = getwd(),
           remote_branch) {
    if (missing(remote_branch)) {
      stop("'remote_branch' is missing.")
    }

    system(command = sprintf("git push origin --delete %s", remote_branch))
  }
meerapatelmd/glitter documentation built on Sept. 9, 2021, 6:21 p.m.