Comments (3)
The credential manager automatically opens the browser and generates a token! It was entirely seamless.
This is what I did:
brew tap microsoft/git
brew cask install git-credential-manager-core
And then open R in a terminal Window (I'm not sure if it works in RStudio because it prompts if you want to open the browser. Need to figure out how to hook that up to an IDE menu).
library(credentials)
git_credential_forget()
set_github_pat()
# And then type: 1
update Note that the generated token is actually not a PAT but an OAuth app. To edit permissions you need to go to oauth apps and select Git Credential Manager
.
from credentials.
It does not work on windows with Git 2.29.1 the manager-core is apparently not detected:
from credentials.
git_credential_ask
does work though and gets the correct PAT
from credentials.
Related Issues (20)
- Verbosity
- Package cannot be installed when installing as another user on linux HOT 2
- load failure when git stub found on macOS HOT 2
- Problems with RStudio Connect installation - could we modify the `.onLoad` to fail less severely? HOT 5
- Allow GITHUB_TOKEN as well as GITHUB_PAT
- Add warning for macOS xcrun errors?
- prefer or accept token keyed by username HOT 23
- `id_rsa` permissions HOT 4
- Set GitHub PAT permanently on AWS-Lightsail HOT 3
- error: unused arguments HOT 2
- Move `master` branch to `main` HOT 1
- `ssh_keygen()` needs to add requirements to RSA keys HOT 4
- terminal prompts disabled HOT 2
- When credentials is (source) installed, `~/.gitconfig` is generated and left intact
- fatal: credential-cache unavailable; no unix socket support
- credential_approve timeouts with latest git
- pkgdown site HOT 3
- Add installation instructions
- Abstract the diagnostics printed in onAttach() into an exported function HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from credentials.