基本用法
快速開始
打包整個倉庫:
bash
repomix常見使用場景
打包指定目錄
bash
repomix path/to/directory包含特定文件
使用 glob 模式:
bash
repomix --include "src/**/*.ts,**/*.md"排除文件
bash
repomix --ignore "**/*.log,tmp/"處理遠端倉庫
bash
# 使用 GitHub URL
repomix --remote https://github.com/user/repo
# 使用簡寫形式
repomix --remote user/repo
# 指定分支/標籤/提交
repomix --remote user/repo --remote-branch main
repomix --remote user/repo --remote-branch 935b695輸出格式
XML(預設)
bash
repomix --style xmlMarkdown
bash
repomix --style markdown純文字
bash
repomix --style plain其他選項
移除註釋
bash
repomix --remove-comments顯示行號
bash
repomix --output-show-line-numbers複製到剪貼簿
bash
repomix --copy禁用安全檢查
bash
repomix --no-security-check配置
初始化配置文件:
bash
repomix --init更多詳細配置選項請參閱配置指南。