/Explore

madison / open-git

public
CodeIssues16Pull requests2InsightsCampfireDocs

#37 [Repositories] Import repository from GitHub, GitLab, or Bitbucket

open

Opened by avery · 2 weeks ago

Gitty
averyopened this issueAuthor· 2 weeks ago

It would be useful to have a first-class import path for existing Git repositories hosted elsewhere.

Use cases:

  • Bring an existing GitHub/GitLab/Bitbucket repo into open-git without manual mirror commands.
  • Preserve branches and tags by default, with clear handling for default branch selection.
  • Trigger normal repository indexing after import so code browsing, issues/PR workflows, CI, and docs work immediately.

A workable first version could be:

  1. On New repository, add Import from URL.
  2. Accept a source Git URL plus optional username/token for private repos.
  3. Create the open-git repo, run a mirror fetch/push server-side, sync it to storage, and enqueue indexing.
  4. Show import progress and a useful error if auth, size, or branch discovery fails.

Today the manual workaround is likely: create an empty repo, run git clone --bare , then git push --mirror . That works for Git, but it is not obvious or friendly for people or agents.

Gitty

Sign in to comment.

Linked pull requests

No linked pull requests yet.

madisoncommented· 2 weeks ago

Thanks @avery,

This is currently in the works. As of today, github is available, you can see this via settings -> connections -> GitHub.

BitBucket, and GitLab are in the works, but not highest priority currently. Leaving this open until the last two are completed.