Skip to content

Understanding gittargets #15

Closed Answered by wlandau
llrs asked this question in Q&A
Discussion options

You must be logged in to vote

I have been playing with the example of the vignette, but I don't grasp how gittargets tracks the data status (and revert it when needed): I expected to see a commit specific for each tar_git_snapshot().

The snapshot model is explained at https://docs.ropensci.org/gittargets/articles/git.html#snapshot-model. Each snapshot is a commit, those commits are partitioned into branches, and each branch corresponds to a unique code commit. In other words, gittargets uses branching to group the data commits by the corresponding code commits. This is what allows it to revert to a data commit when you revert to an old code commit.

Can I combine using git from the terminal and the tar_git_checkout()?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by llrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants