ghc_repos_git_switch_branch: Git Switch Branch

ghc_repos_git_switch_branchR Documentation

Git Switch Branch

Description

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.

Usage

ghc_repos_git_switch_branch(prefix, branch = "master", folder = ".")

Arguments

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)

Value

returns the prefix invisibly to facilitate piping

See Also

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()


KopfLab/ghctools documentation built on Feb. 20, 2023, 9:25 a.m.