Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make git workflow more robust #7

Open
isteves opened this issue Aug 17, 2018 · 1 comment
Open

Make git workflow more robust #7

isteves opened this issue Aug 17, 2018 · 1 comment

Comments

@isteves
Copy link
Owner

isteves commented Aug 17, 2018

Connect to GitHub

  1. usethis::use_git()
  2. usethis::use_github()

#TODO: how to deal with errors

If use_github gets an authentication error, then switch to terminal and use git directly: git push origin master

https://community.rstudio.com/t/difficulty-using-usethis-use-github/5579

@isteves
Copy link
Owner Author

isteves commented Sep 4, 2018

This solution works for me:

cred <- git2r::cred_ssh_key(
  publickey = "~/../.ssh/id_rsa.pub",
  privatekey = "~/../.ssh/id_rsa"
)
use_github(credentials = cred)

http://happygitwithr.com/ssh-keys.html#git2r-or-some-other-tool-cant-find-ssh-keys-on-windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant