Setup your local git config
git config --global user.name '<GITHUB_UNAME>'
git config --global user.email '<GITHUB_EMAIL>'
Setup ssh authentication
ssh-keygen -t ed25519 -C "<GITHUB_EMAIL>"
[ENTER]
[ENTER]
Copy the public SSH key
cat ~/.ssh/id_ed25519.pub
Paste it as a new SSH key in this page https://github.com/settings/keys