ghc_repos_git_discard_changes | R Documentation |
Discards all unstaged(!) changes for repositories that match the prefix
. This does NOT affect changes that have already been staged/committed (you would have to use git reset
to do that). Note that this function uses the git checkout
command, there is no git discard
.
ghc_repos_git_discard_changes(prefix, folder = ".")
prefix |
repository prefix (typically this would be a github classroom assignment prefix) |
folder |
the target directory where to look for matching git repositories (searches recursively in all subdirectories) |
returns the prefix
invisibly to facilitate piping
Other command functions:
ghc_repos_copy_to()
,
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_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.