当我使用travis encrypt-file
命令时,抛出错误:
Can't figure out GitHub repo name. Ensure you're in the repo directory, or specify the repo name via the -r option (e.g. travis <command> -r <owner>/<repo>)
如何使用travis命令指定回购名称?我找不到travis的文档
答案 0 :(得分:3)
lib/travis/cli/repo_command.rb
中可以看到类似但更完整的消息Can't figure out GitHub repo name.
Ensure you're in the repo directory, or specify the repo name via the -r option (e.g. `travis <command> -r <owner>/<repo>`)"
GitHub repo name is invalid, it should be on the form 'owner/repo'
所以在你的情况下:
travis encrypt-file -r <owner>/<repo>
或者:
cd /path/to/GitHub/cloned/repo/locally
travis encrypt-file
(因为在最后一种情况下,git remote -v
显示了github远程repo url)
说到远程,J0hnG4lt提及in the comments:
通过使用非标准远程名称对我造成的影响 特拉维斯希望遥控器被称为&#34;
origin
&#34;。