r-lib / gert

Simple git client for R
https://docs.ropensci.org/gert/
Other
146 stars 31 forks source link

Checkout file from another branch? #188

Open joelnitta opened 1 year ago

joelnitta commented 1 year ago

Is there a way to checkout a file from another branch?

Similar to the example in this blogpost:

git checkout feature/B -- utils.js

The closest I can seem to find is git_branch_checkout(), but that checks out the whole branch, not just one file.