Learn R Programming

adapr (version 1.0.2)

git.add: git add to stage the file

Description

git add to stage the file

Usage

git.add(gitdir, filename, branch = NULL, git_args = character(),
  git_binary = NULL)

Arguments

gitdir

string with git directory

filename

string of file to query

branch

git branch

git_args

string argument for git

git_binary

location of git executable

Value

git output from git add

Examples

Run this code
# NOT RUN {
si <- pull_source_info("adaprHome")
file0 <- file.path(si$project.path,project.directory.tree$analysis,"read_data.R")
git.add(si$project.path,file0) 
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab