ghc_repos_git_switch_branch | R Documentation |
Lets you switch to a different branch that already exists for all repositories that match the prefix
. Note that the git command used for this is git checkout
.
ghc_repos_git_switch_branch(prefix, branch = "master", folder = ".")
prefix |
repository prefix (typically this would be a github classroom assignment prefix) |
branch |
branch name (for commands that interact with branches) |
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_discard_changes()
,
ghc_repos_git_pull()
,
ghc_repos_git_push()
,
ghc_repos_git_remove()
,
ghc_repos_git_status()
,
ghc_repos_run_git_command()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.