knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(glitter)
library(tidyverse)
library(rlang)

HELP!

I lost a file my repo but I forgot what I called it so I get a list of all the files ever deleted in the repo.

deletedFileHistory()

I find my long lost file on the list as R/logo.R. I then get the commit history of that file using the full path.

fileCommitHistory(filePath = "R/logo.R",
                  repo_path = "~/GitHub/Public-Packages/glitter/")

I find the commit SHA where I deleted the file. Using the SHA and path, I am able to retrieve the file.

retrieveLostFile(sha = "1b9ac7e47fc77f12c21ed2447a71ae8d77a0f37c",
                 filePath = "R/logo.R",
                 repo_path = "~/GitHub/Public-Packages/glitter")


patelm9/glitter documentation built on Sept. 21, 2020, 5:42 p.m.