Open maelle opened 6 years ago
I take this back because it won't work for Windows users at the moment (ask me how I know this 😀 )
Now git2r
dev version should work on Windows. I guess it's important for the article about pushing the review to GitHub (which I 💙 because screenshots make it seem less daunting for beginners I think!)
Note that no, one cannot push using git2r
on Windows, so I take this back.
I believe the latest version of git2r
has solved these issues on all systems. I've added the requirement for the latest version. So will close for now.
No it hasn't! I still can't push
Oh! Yes I got confused! Was thinking of the clone problems I was having! OK, I think I have that problem at the moment too. Lemme do a little test
Yup, failing. Getting this message:
✔ Creating GitHub repository
✔ Adding GitHub remote
✔ Pushing to GitHub and setting remote tracking branch
Error in git2r::push(r, "origin", "refs/heads/master", credentials = credentials) :
Error in 'git2r_push': error authenticating:
However:
use_github(protocol = "https")
✔ Setting active project to '/Users/Anna/Desktop/test_use_github'
● Check title and description
Name: test_use_github
Description:
Are title and description ok?
1: Yeah
2: Nope
3: No way
Selection: 1
✔ Creating GitHub repository
✔ Adding GitHub remote
✔ Pushing to GitHub and setting remote tracking branch
✔ Opening URL https://github.com/annakrystalli/test_use_github
WORKS! (it uses the PAT I believe)
Wanna try it on Windows?
I do have an ssh key set up though 🤔
Oh! I think it might be the 2FA! I think you can't use ssh if you're using 2FA?!
I promise nothing works on Windows, I tested many, many things. 😉 Now for pushing with R, I am just waiting for https://github.com/jeroen/gert to be mature.
usethis::use_github
could replace step 3 of the review workflow