git_push_win: 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 in window system

Usage

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

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"

git_exe

a string with the full name of git-cmd.exe, 'C:/Users/ynie01/AppData/Local/GitHub/PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c/git-cmd.exe'

Examples

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

## End(Not run)

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