git_push: This function automatically commit and push the changes on to...

Description Usage Arguments Examples

Description

This function automatically commit and push the changes on to github

Usage

1
2
3
git_push(git_dir = "~/Dropbox/Yunlong/", commit = FALSE, comment = " ",
  keyword = "no_filter", limit_size = 5000, verbose = TRUE,
  type = c("deleted", "modified", "new file", "renamed"))

Arguments

git_dir

repo directory

commit

TRUE or FALSE, whether to commit or not

comment

comment message, a string, only matters when commit is TRUE

keyword

a string for keyword filtering, for you only want commit a certain folder each time

limit_size

large file limit, default is 5000 which means 5MB

verbose

TRUE or FALSE, print the git messages

type

a string or a string vector, one of "deleted","modified","new file" and "renamed"

Examples

1
2
3
4
5
## Not run: 
git_push(git_dir=getwd(),commit=FALSE)
git_push(git_dir=getwd(),commit=TRUE,comment="first git push")

## End(Not run)

YunlongNie/makingRpk documentation built on May 10, 2019, 1:54 a.m.