top right user icon→settings→ssh and GPG keys → new ssh keyThis is an old revision of the document!
For git push to github, you'll need some way to confirm your credentials. Authentication can happen with ssh keys (recommended) or an app password
If you have an existing directory you want to put on github, DO NOT generate a readme file on github
git push can use ssh authentication. You need a key likely in ~/.ssh/id_rsa.pub.
Contents of ~/.ssh/id_rsa.pub should be pasted into new ssh key modal on https://github.com/settings/keys 1)
If ~/.ssh/id_rsa.pub doesn't exist, ssh-keygen can make it (use empty password for convience. hit enter at password prompt to leave blank). See more documentaiton on github
To push to https (vs ssh like git@) repos, you'll need to use a personal authentication token when prompted for a password. See github's documentation
top right user icon→settings→ssh and GPG keys → new ssh key