Replies: 1 comment 9 replies
-
Just a comment on this:
usethis uses the R package gert for all git operations, which provides libgit2 bindings, and gh for github work. So none of that depends on finding or using system git. It is true that git/github credentials will need to be available for gert and gh, for much of what they do. I suspect you're going to need to fill in more detail for us to be able to tell if there's anything within Positron's control about your problem. As in, some exact sequence of actions and exact error messages. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The question has come up again and I am writing here because I would be glad if someone can help me to fully understand the following behavior. Let's imagine we open a project in positron. This project is properly version controlled and synchronized with GitHub. We are not signed in with a GitHub account and we also do not use the GitHub PR Extension (likely soon included by default #7525). We can pull and push, for example. BUT, it takes some time until system git is recognized. This means that only then we can do things like
usethis::create_from_github()
or work with the {usethis} PR helpers. In other words, until some timegitcreds::gitcreds_get()
would error with “could not find system git” and after some time it will show the expected response. If we want to compare with RStudio, it won't take some time in RStudio. I assume something concrete must happen in some time, but examining a few hypotheses, I could not explain it to my satisfaction.In case it matters: I can observe it using positron (several versions including) 2025.06.0-48 on a Windows machine. I haven't had the chance to try it on another OS.
Beta Was this translation helpful? Give feedback.
All reactions