# Gitea Authentication

Remote:

```text
https://git.noveria.net/bao/genshin-assistant.git
```

Personal access tokens can be managed here:

```text
https://git.noveria.net/user/settings/applications
```

Use the token as the HTTPS password when Git asks for credentials. Do not save
tokens, passwords, or generated credentials in this repository, in `.env`
files, or in the remote URL.

On Windows, this repository uses Git Credential Manager from the system Git
config:

```powershell
git config --show-origin --get-all credential.helper
```

If authentication breaks again, refresh the saved credential in Windows
Credential Manager or let Git Credential Manager prompt again during:

```powershell
git push origin main
```

Recommended push check:

```powershell
git status --short --branch
git remote -v
git push origin main
git status --short --branch
```

Expected clean result after a successful push:

```text
## main...origin/main
```

If Git reports `Failed to authenticate user`, do not change the remote to embed
a token. Open the token page above, create or refresh a token with repository
write access, clear the stale Windows credential for `git.noveria.net` if
needed, and rerun the same push command so Git Credential Manager can store the
new credential safely.
