Connect your notes repo
- Create a repo on GitHub for your notes (private is fine).
- Go to Settings → Developer settings → Personal access tokens → Fine-grained tokens → Generate new token, or open this link.
- Set Repository access to Only select repositories, and pick the repo from step 1.
- Under Permissions → Repository permissions, set Contents to Read and write. Leave everything else alone.
- Set an expiration you're comfortable with. You'll need to generate a new one when it lapses.
- Generate the token, copy it, and paste it below.
This token stays in your browser and is sent only to GitHub. It can read and write files in that one repo, and nothing else. You can revoke it any time in your GitHub settings.