capabilities.work

Create a new file in a repository

One step with GitLab. We can help you get access.

Get something done

Create a new file in a repository

with GitLab
Works with AI assistants

Use GitLab: its GitLab REST Files API lets you create a new file in a repository in a single step (POST /api/v4/projects/{id}/repository/files/{file_path}). GitLab also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • How do I add a brand-new file to a GitLab repository?
  • Can I create a single file in a project without making a full commit by hand?
  • What do I need to supply to create a file at a given path in a project?
Say it to your AI assistant
  • Create a new file at {file_path} in project {id} with content {file}.
  • Add a new file {file} to repo {id} at the path {file_path}.
For your developer

POST /api/v4/projects/{id}/repository/files/{file_path} in GitLab REST Files API. Full spec on APIs.io.