Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2023 08:24:37 -0700 (MST)
From:      Dale Scott <dalescott@shaw.ca>
To:        Tomek CEDRO <tomek@cedro.info>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: push to github repo hangs - why? (how to push to Github from FreeBSD)
Message-ID:  <1461614347.22885986.1674746677113.JavaMail.zimbra@shaw.ca>
In-Reply-To: <CAFYkXjkR9W85Wq8bwqc_m3C%2Brgx98njzBd9mVxS3pAnSwgc2Pg@mail.gmail.com>
References:  <2088347522.21487875.1674704156310.JavaMail.zimbra@shaw.ca> <CAFYkXjkR9W85Wq8bwqc_m3C%2Brgx98njzBd9mVxS3pAnSwgc2Pg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message -----
> From: "Tomek CEDRO" <tomek@cedro.info>
> To: "Dale Scott (dalescott@shaw)" <dalescott@shaw.ca>
> Cc: "freebsd-questions" <freebsd-questions@freebsd.org>
> Sent: Thursday, January 26, 2023 2:16:06 AM
> Subject: Re: push to github repo hangs - why?

> On Thu, Jan 26, 2023 at 4:36 AM Dale Scott wrote:
>> Hi all,
>> I'm attempting my first push to a GitHub repo in my personal account, using a
>> Personal Access Token (classic) for authentication.
>> The push seems to start off ok, but then seems to hang.
>> Can anyone point out what I'm doing wrong?
> 
> Do you use gnupg 2.3.8? Can you use older package version (it should
> be cached in /var)? Remember to restart gpg-agent after reinstall :-)
> 
> I have this problem too on one machine gnupg + gpg-agent + yubikey.
> Using older version so far helps.


Thanks for replying Tomek. I'm not using gnpug (or gpg-agent or yubikey). I had thought (clearly incorrectly) that simply entering my personal access token on the command line as my username password would work.

As a temporary workaround, I copied the repository to a Windows laptop where I pushed to my GitHub repo using GitExtensions. This resulted in some magic (a browser window opened for me to login to GitHub to authenticate), after which the push proceeded. I then received an email from GitHub reporting "A first-party GitHub OAuth application (Git Credential Manager) with gist, repo, and workflow scopes was recently authorized to access your account."

I see GCM (Git Credential Manager) is not supported on FreeBSD and has not been ported to the ports collection. Further, Google can't seem to find anything useful regarding how to authenticate when pushing from FreeBSD to GitHub today.

Can you explain your workflow in more detail? It looks like I've got some reseach to do....

Thanks,
Dale




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1461614347.22885986.1674746677113.JavaMail.zimbra>