Skip to main content
Glama

push_files

Push multiple files to a GitHub repository branch in a single atomic commit using the Git Data API, creating blobs, trees, and updating references.

Instructions

Push multiple files to a branch in a single commit using the Git Data API. This creates blobs, a tree, a commit, and updates the branch ref atomically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYesRepository owner
repoYesRepository name
branchYesTarget branch name
filesYesDictionary of file paths to file contents (e.g. {"src/main.py": "print('hello')"})
messageYesCommit message

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/software-engineer-mj/github-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server