create_or_update_file
Create or update files in GitHub repositories by specifying content, path, and commit details to manage repository files directly.
Instructions
Create or update a single file in a GitHub repository
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner (username or organization) | |
| repo | Yes | Repository name | |
| path | Yes | Path where to create/update the file | |
| content | Yes | Content of the file | |
| message | Yes | Commit message | |
| branch | Yes | Branch to create/update the file in | |
| sha | No | SHA of the file being replaced (required when updating existing files) |