Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tools for Managing SSH and Git Credentials

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

r-lib/credentials

 
 

Repository files navigation

This package is a joint effort fromrOpenSci and theTidyverse team.

Tools for Managing SSH and Git Credentials

Project Status: Active – The project has reached a stable, usable state and is being actively developed.Build StatusAppVeyor Build StatusCRAN_Status_BadgeCRAN RStudio mirror downloads

Setup and retrieve HTTPS and SSH credentials for use with 'git' andother services. For HTTPS remotes the package interfaces the 'git-credential'utility which 'git' uses to store HTTP usernames and passwords. For SSHremotes we provide convenient functions to find or generate appropriate SSHkeys. The package both helps the user to setup a local git installation, andalso provides a back-end for git/ssh client libraries to authenticate withexisting user credentials.

Setting your GITHUB_PAT

Automatically populate yourGITHUB_PAT environment variable from the native git credential store. The credential manager will safely prompt the user for credentials when needed.

credentials::set_github_pat()

Use this function in your.Rprofile if you want to automatically setGITHUB_PAT for each R session, without hardcoding your secret in plain text.

Manage HTTPS credentials

Load or prompt the user for GitHub username and password:

library(credentials)git_credential_ask('https://github.com')

See which credential helper back-end yourgit-credential store is using:

credentials::credential_helper_get()

Manage SSH keys

Lookup the appropriate key, or prompt the user to generate one:

library(credentials)ssh_key_info()

You can copy-paste the public key directly to yourGitHub profile!

For developers

Use the openssl package to read the user private key in R for encryption / signatures:

user<- ssh_key_info()key<- ssh_read_key(user$key)openssl::write_pem(key)

About

Tools for Managing SSH and Git Credentials

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp