[R-pkg-devel] GitHub problems
M@x@Turgeon @end|ng |rom um@n|tob@@c@
Fri Apr 3 22:17:34 CEST 2020
Did you follow the instructions here? https://help.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh
Once the key is setup, you should be able to do "git clone git using github.com:JamesRamsay5/fda.git", without any need to input a token or a password in the command. Similarly, git push/pull/fetch should all work seamlessly.
This is how I've used Github for many years, and it's always worked fine.
Connecting to GitHub with SSH - GitHub Help<https://help.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh>
You can connect to GitHub using SSH.
Department of Statistics
Department of Computer Science
University of Manitoba
From: R-package-devel <r-package-devel-bounces using r-project.org> on behalf of Spencer Graves <spencer.graves using effectivedefense.org>
Sent: April 3, 2020 3:03:12 PM
To: Hugh Parsonage
Cc: List r-package-devel
Subject: Re: [R-pkg-devel] GitHub problems
Caution: This message was sent from outside the University of Manitoba.
I've been unable to get SSH to work with
"https://github.com/JamesRamsay5/fda", documented in my email to this
group almost 3 weeks ago. I've been able to do "git clone
change a file, do "git commit" and "git push".
However, this has my GitHub password in a plain text ".git" file
on my hard drive. I think the hard drive on my computer is encrypted,
so maybe that's not a problem.
Am I not allowed to use SSH with a GitHub repository that's not
p.s. Since my previous email, Ramsay added "README.md" to that
repository. I can do "git clone" and get it, then edit it, then "git
commit". However, "git push" keeps giving me errors:
remote: Invalid username or password.
fatal: Authentication failed for
A few hours ago, the owner, JamesRamsay5, went to "Settings" >
"Manage access", then invited me as a collaborator. I got an email
asking me to "view invitation", which I did. I got another email
saying, "Hey there, we�re just writing to let you know that you�ve been
automatically subscribed to a repository on GitHub." Sadly, I still
couldn't access it, so I I deleted my token and created a new one. I
also deleted my previous local clone of "fda" and recreated it using
"git clone https://<token>@github.com/JamesRamsay5/fda". Then I did a
test edit to the one file in that repository, README.md. I think did
'git commit README.md -m "tst edit"'. Then "git push" keeps giving me
the error just mentioned.
R version 3.6.3 (2020-02-29)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Catalina 10.15.4
Matrix products: default
attached base packages:
 stats graphics grDevices utils datasets
 methods base
loaded via a namespace (and not attached):
 compiler_3.6.3 tools_3.6.3
On 2020-03-14 02:33, Spencer Graves wrote:
> Thanks very much.
> I deleted my token. I will forward your comment to Jim Ramsay to try
> to figure out the permissions question.
> On 2020-03-14 01:35, Hugh Parsonage wrote:
>> You published your token. You should revoke it.
>> You probably don�t have the right permissions associated with git.
>> On Sat, 14 Mar 2020 at 2:14 pm, Spencer Graves
>> <spencer.graves using effectivedefense.org
>> <mailto:spencer.graves using effectivedefense.org>> wrote:
>> Hello, All:
>> What do you suggest Jim Ramsay and I do to migrate the fda
>> package to GitHub?
>> Jim successfully created an empty repository:
>> He told me he had officially made me a "contributor". I did:
>> git clone https://<token>@github.com/JamesRamsay5/fda
>> Cloning into 'fda'...
>> warning: You appear to have cloned an empty repository.
>> Checking connectivity... done.
>> Then I copied files into this directory, did "git add" and
>> Then I did "git push", and it wouldn't let me:
>> SpenceravessMBP:fda sbgraves$ git push
>> remote: Permission to JamesRamsay5/fda.git denied to sbgraves237.
>> fatal: unable to access
>> The requested URL returned error: 403
>> Spencer Graves
>> R-package-devel using r-project.org
>> <mailto:R-package-devel using r-project.org> mailing list
[[alternative HTML version deleted]]
R-package-devel using r-project.org mailing list
[[alternative HTML version deleted]]
More information about the R-package-devel