diff --git a/README.md b/README.md index 8d851f7e..5176d536 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,22 @@ bash install-all.sh Enter your password when it asks. The script installs Node.js, Python, Chrome, PostgreSQL, Redis, rclone and nginx; installs the Node and Python dependencies; creates any missing `.env` files (existing ones are kept); sets up the database; and creates the desktop shortcuts. It is safe to re-run. +### D — Let git remember your Gitea login (one time) + +So `git push` doesn't ask for the password every time: + +```sh +git config --global credential.helper store +cd ~/Desktop/DentalManagement09 +git push origin main +``` + +Enter the Gitea username and password once when asked — git saves them and won't prompt again. + +> Prefer a Gitea **access token** over your real password: log into https://gitea.mydentalofficemanagement.com → profile picture → **Settings** → **Applications** → **Generate New Token** (give it **Read and Write** access to **repository**), and paste the token when git asks for the password. A token can be revoked in Gitea at any time without changing your password. + +> `store` saves the login in plain text in `~/.git-credentials`. The keyring-based helper isn't an option here because Step 1a removes gnome-keyring. + Still done by hand afterwards: the Security Setup above, Step 1 (auto-login / keyring), Step 12a (Cloudflare subdomain), the LAN HTTPS certificate (the script only enables the nginx site once that certificate exists), and the optional Steps 17–18. ---