help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issues With Trying To Use Magit Mode For GitHub Repos Via SSH Key


From: Robert Pluim
Subject: Re: Issues With Trying To Use Magit Mode For GitHub Repos Via SSH Key
Date: Thu, 06 Jan 2022 10:20:55 +0100

>>>>> On Wed, 05 Jan 2022 19:25:32 -0500, "Samuel Banya" <sbanya@fastmail.com> 
>>>>> said:

    Samuel> I tried this:
    Samuel> [core]
    Samuel> repositoryformatversion = 0
    Samuel> filemode = true
    Samuel> bare = false
    Samuel> logallrefupdates = true
    Samuel> [remote "origin"]
    Samuel> url = https://github.com/SamuelBanya/SimpleSynth 
ssh://github.com/SamuelBanya/SimpleSynth.git
    Samuel> fetch = +refs/heads/*:refs/remotes/github/*
    Samuel> [branch "main"]
    Samuel> remote = origin
    Samuel> merge = refs/heads/main

    Samuel> Yet, when I use 'p' and 'u' in Magit Mode, I get this error:

    Samuel> 128 git … push -v origin main\:refs/heads/main
    Samuel> Pushing to https://github.com/SamuelBanya/SimpleSynth 
ssh://github.com/SamuelBanya/SimpleSynth.git
    Samuel> fatal: unable to access 'https://github.com/SamuelBanya/SimpleSynth
    Samuel> ssh://github.com/SamuelBanya/SimpleSynth.git/': URL using 
bad/illegal
    Samuel> format or missing URL

    Samuel> Any ideas on what to do in that case?

You've specified two urls in the 'url' field. I suggest you stick to
just the 'ssh' one.

Robert
-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]