(a page to start collecting how-to-fix tips. not yet friendly enough for most people.)
Note that Git error messages make it sound like a repo is "not found", rather than there are access issues if you don't have access to it.
Note that things work differently for HTTPS and SSH git URLs. HTTPS needs a password or personal access token. SSH uses a keypair.
GitHub Desktop defaults to pulling via HTTPS. If you pull via GitHub Desktop, but then sync via Obsidian Git or command-line, the latter may fail if you don't have authentication set up properly.
If you need to cache Git credentials for HTTPS URLs, consider using Microsoft's open source "Git Credential Manager Core", or
git config --global credential.helper store, but read more about
store -- it saves your password/PAT in plaintext. Also read more about the
osxkeychain helper if you're on a Mac.
Consider using a PAT rather than your main password, because it's easier to rotate or remove if necessary
See these pages about caching Git credentials:
This happens when you have changed files on your computer and you do a pull.
Undo all local changes.
git checkout .
Save ("stash") your changes to a temporary location. (PREFERRED)
git stash pop
Save your changes to a new branch.
git checkout -b pk-name-of-new-branch-20210313
git switch main
git switch -
git merge main
You can remove a repo from GitHub Desktop's list of repos. You can either leave the repo in place, or move it to Trash.
Right-click on the repository in the repository list in GitHub Desktop and select "Remove..."" to remove the repository. You will have the option of moving the repo to Trash or not.