R/git_commit_env.R

Defines functions git_commit_env

Documented in git_commit_env

#' Add, commit and push all current changes to github
#'
#' @param comment Character commit comment.
#'
#' @return Side effect of adding, committing and pushing any changes in project.
#' @export
#'
#' @examples
git_commit_env <- function(comment) {

  files <- gert::git_status()$file

  gert::git_add(files)

  gert::git_commit(comment)

  gert::git_push()

}
Acanthiza/envFunc documentation built on Aug. 19, 2024, 4:50 a.m.