Saturday, October 31, 2020

Re: Question about permissions for django.git

Hey Kasper-

Many thanks! Tried your suggestion and it works.

Does this mean that my specific git configuration is such that the 'git' URL will not work? If so, it is possible that https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/working-with-git/ could be updated to show both ways of setting up the remote?

Best regards,
Chris
On Saturday, October 31, 2020 at 10:39:44 AM UTC-7 Kasper Laudrup wrote:
Hi Chris,

On 31/10/2020 17.02, Christopher Keith wrote:
> Folks -
>
> I am following the instructions from
> https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/working-with-git/
> .
>
> However, when I try to 'git fetch' the source repo, I get 'Permission
> denied'
>
> PS C:\Users\chris\Documents\Github>  git clone
> https://github.com/chrisxkeith/django.git

Here you are using an https URL (https://github.com/chrisxkeith/django.git)

> g...@github.com:django/django.git
> PS C:\Users\chris\Documents\Github\django> git fetch upstream
> g...@github.com: Permission denied (publickey).
> fatal: Could not read from remote repository.

Here you are using a "git" URL (g...@github.com:django/django.git).

Instead of:

# git remote add upstream g...@github.com:django/django.git

Try:

# git remote add upstream https://github.com/django/django.git

Or something similar.

Hope you see the difference.

Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3f79206c-e65c-4c03-94f6-51be34a079a2n%40googlegroups.com.

No comments:

Post a Comment