Github: Difference between revisions

From DWIKI
Tony (talk | contribs)
Tag: wikieditor
Tony (talk | contribs)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:


=FAQ=
=Links=
==Links==
*[https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication 2 factor authentication on github]
*[https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication 2 factor authentication on github]
https://github.com/drduh/YubiKey-Guide
https://github.com/drduh/YubiKey-Guide


== Create pull request ==


*https://opensource.com/article/19/7/create-pull-request-github
=HOWTO=
==Use ssh==
*[https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent Generating a new SSH key for a hardware security key]
On github.com go to '''Settings->SSH and GPG keys'''
'''Add key''': paste your public key
Make sure your ssh client uses correct key:
Host github.com
  IdentityFile ~/.ssh/id_ed25519
 
And
git remote set-url origin git@github.com:username/your-repository.git
 
=FAQ=
==Error messages==
===The authenticity of host 'github.com (140.82.121.3)' can't be established. ===
??


===git@github.com: Permission denied (publickey).===
Most likely github doesn't know your public key, try
ssh -vT git@github.com
and check on your account: '''SSH and GPG keys -> SSH keys'''


==This branch has conflicts that must be resolved ==
==This branch has conflicts that must be resolved ==
resvolve them :)
resolve them :)
 
==remote: Support for password authentication was removed ==
* https://docs.github.com/en/authentication/connecting-to-github-with-ssh


==Password authentication is not supported for Git operations==
Check:
* https://docs.github.com/en/authentication/connecting-to-github-with-ssh


==remote: Support for password authentication was removed ==
or use Personal Acces Token instead: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
 
==Local copy contains "<<<<<<< HEAD" ==
Merge conflict, fixing it:
git mergetool
 
 
== Create pull request ==
 
*https://opensource.com/article/19/7/create-pull-request-github

Latest revision as of 10:55, 1 June 2026

Links

https://github.com/drduh/YubiKey-Guide


HOWTO

Use ssh

On github.com go to Settings->SSH and GPG keys Add key: paste your public key Make sure your ssh client uses correct key:

Host github.com
  IdentityFile ~/.ssh/id_ed25519

And

git remote set-url origin git@github.com:username/your-repository.git

FAQ

Error messages

The authenticity of host 'github.com (140.82.121.3)' can't be established.

??

git@github.com: Permission denied (publickey).

Most likely github doesn't know your public key, try

ssh -vT git@github.com

and check on your account: SSH and GPG keys -> SSH keys

This branch has conflicts that must be resolved

resolve them :)

remote: Support for password authentication was removed

Password authentication is not supported for Git operations

Check:

or use Personal Acces Token instead: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

Local copy contains "<<<<<<< HEAD"

Merge conflict, fixing it:

git mergetool


Create pull request