Git and GitHUB tutorial - Kraft2k/py_info_inv GitHub Wiki
Reference
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/using-ssh-agent-forwarding
Cloning without a root folder
git clone "repository" ./
Generating a new SSH key
ssh-keygen -t rsa -b 4096 -C "[email protected]"
Adding your SSH key to the ssh-agent
Start the ssh-agent in the background.
eval "$(ssh-agent -s)"
Agent pid 59566
Add your SSH private key to the ssh-agent.
ssh-add ~/.ssh/id_rsa
Adding a new SSH key to your GitHub account.
Copy the SSH public key to your clipboard.
cat ~/.ssh/id_rsa.pub
Paste your key into the "Key" field in New SSH key of Github
You can test that your local key works by entering ssh -T [email protected] in the terminal: