remove_last_commit_forresdat: remove last local change from git repository 'forresdat'

View source: R/remove_last_commit_forresdat.R

remove_last_commit_forresdatR Documentation

remove last local change from git repository forresdat

Description

This function removes the last commit from the active branch of the specified git repository. ONLY USE THIS FUNCTION IF YOUR COMMIT IS NOT YET PUSHED TO THE REMOTE!!! This function is meant for users that are not familiar with Git to easily remove an automatically generated commit in forresdat after they discovered mistakes in it.

Usage

remove_last_commit_forresdat(repo_path)

Arguments

repo_path

name and path of local git repository in which last commits should be removed

Value

A dataframe with the specified table

Examples

## Not run: 
#change paths before running
library(forrescalc)
# add path to your local clone of forresdat
path_to_forresdat <- "xxx/forresdat"

# only run this after writing a commit with `save_results_forresdat()` or
# `from_access_to_forresdat()` that has not yet been pushed to Github!
remove_last_commit_forresdat(repo_path = path_to_forresdat)

## End(Not run)


inbo/forrescalc documentation built on Sept. 28, 2024, 11:45 a.m.