Add benchmark thesis and outline analysis

Document non-interactive HTTP credentials workflow in README.
This commit is contained in:
liam
2026-02-09 09:21:32 +00:00
parent 2679f4a01a
commit c143c3267e
3 changed files with 522 additions and 0 deletions

View File

@@ -6,3 +6,43 @@ Personal essay repository.
- Clone: `git clone http://100.66.1.6:13000/liam/essay.git`
- Add content, then commit and push.
## Non-interactive HTTP push (credential helper)
If you're in an environment without an interactive TTY, `git push` over HTTP can fail because Git
cannot prompt for a username/password. You can pre-load credentials using a credential helper.
Notes:
- Do not hardcode passwords in remotes.
- `credential.helper store` saves credentials in plaintext. Prefer a token if your Git server supports it.
Steps:
```bash
# 1) Make sure the remote URL includes the username
git remote set-url origin http://liam@100.66.1.6:13000/liam/essay.git
# 2) Enable a credential helper
git config --global credential.helper "store --file ~/.git-credentials"
# 3) Approve credentials (replace with your own password/token)
cat > /tmp/git-cred <<'EOF'
protocol=http
host=100.66.1.6:13000
username=liam
password=YOUR_PASSWORD_OR_TOKEN
EOF
git credential approve < /tmp/git-cred
rm -f /tmp/git-cred
# 4) Push without prompting
GIT_TERMINAL_PROMPT=0 git push -u origin main
```
Cleanup (recommended for shared/temporary machines):
```bash
rm -f ~/.git-credentials
git config --global --unset credential.helper
```