c143c3267e7a2c78ca3a38c2b2d0373b19bc45a9
Document non-interactive HTTP credentials workflow in README.
essay
Personal essay repository.
Getting started
- 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 storesaves credentials in plaintext. Prefer a token if your Git server supports it.
Steps:
# 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):
rm -f ~/.git-credentials
git config --global --unset credential.helper
Description
Languages
Python
100%