Guide to connect your github to local git.
Step 1: Open Terminal
Step 2: Generating ssh key
ssh-keygen -t ed25519 -C [your email id of github]
Step 3: starting ssh agent
eval "$(ssh-agent -s)"
Step 4: adding public and private ssh keys to ~/.ssh
ssh-add ~/.ssh/id_ed25519
Step 5: copy public ssh key
clip < ~/.ssh/id_ed25519.pub
Step 6: paste this public key in your github account on https://github.com/settings/keys