基本用法
快速开始
打包整个仓库:
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更多详细配置选项请参阅配置指南。