git config --list  # View config of git 

SSH uses two keys, a public key and a private key.

GitLab

To add an SSH key to your GitHub account, follow these steps:

  1. Generate a new SSH key (if you don't already have one):

  2. Start the ssh-agent in the background:

  3. Add your SSH key to your GitHub account:

  4. Test your SSH connection:

This process adds your SSH key to GitHub, allowing you to push and pull from repositories without needing to enter your username and password each time.

Tools