Learn R Programming

gitr (version 0.1.0)

checkout: Git Checkout

Description

Checks out as a branch if doesn't exist. Branch oriented workflow for switching between branches. If file is passed, checks out the file. A common shortcut to undoing local changes to a file(s). Can be a vector of multiple files.

Usage

gitr_checkout(branch = NULL, file = NULL)

Value

NULL ... invisibly.

Arguments

branch

character(1). The name of a branch, typically a feature branch.

file

character(1). The path to a file.

Examples

Run this code
if (FALSE) {
  gitr_checkout("feature-br")

  gitr_checkout(file = "DESCRIPTION")
}

Run the code above in your browser using DataLab