Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Publishing 20 files at once with no GitHub token

说明与用途

通过 GitHub 网页 UI 自动上传文件,每次最多 20 个文件,无需令牌。

问题

Need to update 20+ files in a GitHub repo without a personal access token, SSH key, or gh CLI, and creating a token requires sudo mode.

结果

Uploaded 20 files in one commit in ~90 s, versus 20 separate commits each ~90 s.

工作流

  • Navigate to /{owner}/{repo}/upload/main
  • Use CDP to locate hidden <input type="file">
  • Set file paths via DOM.setFileInputFiles
  • Click first "Commit changes" button
  • Locate second "Commit changes" button and click it
  • Confirm upload

证据

GitHub's web UI has an upload page at /{owner}/{repo}/upload/main that accepts multiple files at once and commits them in a single commit.

来源

20 files, one commit, about 90 seconds — versus 20 separate edit-and-commit cycles at roughly 90 seconds each.

来源

There is a file-count ceiling: 45 files causes page crash.

来源

Clicking "Commit changes" opens a dialog with another "Commit changes" button. A single click commits nothing and the page just sits there.

来源

  • 记录日期: 2026-10-04T20:25:45.128Z