Skip to main content
Collaborate at HartSign in

← Back to Help Center

Uploading files

Add files to a repository from the browser or your local machine.

  1. 1. Single files in the browser

    On the Code tab, click Edit file and enter the path and content for each new file, then Save changes. This is the fastest way to add one or a few text files.

  2. 2. Bulk upload on an empty repository

    When a repo has no commits yet, use Import a zip on the empty-state panel or go to /{owner}/{repo}/import to upload a .zip archive as the initial commit.

  3. 3. Bulk upload from your computer

    For many files or an existing project folder, use the collab CLI: create a personal access token, run collab pull owner/repo --dir ./my-copy, add files locally, then collab push owner/repo -m "Add files". See Installing and using the collab CLI.

  4. 4. Required access

    Browser editing and CLI push both require maintainer (or higher) access on the repository. Protected default branches block direct edits — see Protected branches.