gh project copy
复制项目
gh project copy [<number>] [flags]
选项
-
--drafts - 复制时包含草稿问题
-
--format <string> - 输出格式:{json}
-q,--jq <expression>- 使用 jq 表达式筛选 JSON 输出
-
--source-owner <string> - 源所有者的登录名。对当前用户使用“@me”。
-
--target-owner <string> - 目标所有者的登录名。对当前用户使用“@me”。
-t,--template <string>- 使用 Go 模板格式化 JSON 输出;参见“gh help formatting”
-
--title <string> - 新项目的标题
示例
# copy project "1" owned by monalisa to github
gh project copy 1 --source-owner monalisa --target-owner github --title "a new project"