| ghc_repos_copy_to | R Documentation |
Copy a file or folder to a number of repositories with the same prefix (typically those form the same assignment). Note that this function will overwrite existing files/folders that have the same name. It will also make sure that the copied file/folder is tracked by git (ghc_repos_git_add) unless parameter git_add=FALSE.
ghc_repos_copy_to( prefix, from, to = basename(from), folder = ".", git_add = TRUE )
prefix |
repository prefix (typically this would be a github classroom assignment prefix) |
from |
the path to the file (or folder) that is to be copied to the respositories (absolute path or relative to the current working directory) |
to |
the relative path where in the target repositories the |
folder |
the target directory where to look for matching git repositories (searches recursively in all subdirectories) |
git_add |
whether to make sure the copied file/folder is tracked by git |
returns the prefix invisibly to facilitate piping
Other command functions:
ghc_repos_git_add(),
ghc_repos_git_clone(),
ghc_repos_git_commit(),
ghc_repos_git_create_branch(),
ghc_repos_git_delete_branch(),
ghc_repos_git_discard_changes(),
ghc_repos_git_pull(),
ghc_repos_git_push(),
ghc_repos_git_remove(),
ghc_repos_git_status(),
ghc_repos_git_switch_branch(),
ghc_repos_run_git_command()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.