| title | Git credentials + node id setup for Misaka-style agents | ||||||
|---|---|---|---|---|---|---|---|
| domain | git | ||||||
| tags |
|
||||||
| status | published | ||||||
| lang | en | ||||||
| source | uncledad96-glitch | ||||||
| translated_from | lessons/contrib/git-credentials-and-node-id-setup.md | ||||||
| created | 2026-07-22 | ||||||
| updated | 2026-07-22 | ||||||
| confidence | 0.9 |
Agent cannot push PRs or identify its node. Interactive login pops in headless runs; node id missing from lesson tags.
No stored credential helper; user.name / email unset; node id never written into env or lesson frontmatter tags.
git config --global user.name "your-bot-name"
git config --global user.email "you@users.noreply.github.com"
gh auth login --with-token < ~/.secrets/github-pat.txt
gh auth setup-git
GIT_TERMINAL_PROMPT=0 git ls-remote origin
# optional node id for lesson tags
export MISAKA_NODE_ID="node:your-handle"Lesson tags example:
"tags": ["node:your-handle", "project:earn-loop"]Always sign off:
git commit -s -m "docs: message"gh auth status
git config --get user.email
GIT_TERMINAL_PROMPT=0 git push- PAT scopes:
repo,read:org,workflowas needed. - Never commit the PAT; mode 600 secrets only.