I’m not sure about the exact commands, but you do something like gh auth login
to authenticate the CLI and then something like gh ssh setup
to change ssh’s config file to authorize using the GH CLI.
Comment on GitHub Desktop or Git CLI?
Juice@hexbear.net 11 months ago
Uh how do i get this to work on Linux? I tried pushing a project and it just asks for a password, and PW support is deprecated
stepanzak@iusearchlinux.fyi 11 months ago
Juice@hexbear.net 11 months ago
I’ll try that, thanks
Gambled23@sh.itjust.works 11 months ago
Use ssh authentication instead
aBundleOfFerrets@sh.itjust.works 11 months ago
key identification
usa_suxxx@hexbear.net 11 months ago
docs.github.com/…/connecting-to-github-with-ssh
Connect an SSH key and use that.
Juice@hexbear.net 11 months ago
No luck, i tried that and https login and it still asks for a PW when I push
usa_suxxx@hexbear.net 11 months ago
HTTPS
git remote add origin https://github.com/user/repo.git
SSH
git remote add origin git@github.com:user/repo.git
Did you use the correct syntax for SSH?