首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用GitHub对自制木桶做出贡献?

如何使用GitHub对自制木桶做出贡献?
EN

Stack Overflow用户
提问于 2016-06-30 05:02:10
回答 1查看 571关注 0票数 1

下面的引文是用来制作啤酒桶的说明.但是,我不能理解这个句子:github_user='<my-github-username>',我不知道是否应该输入<>,以及github_user是什么

有一个电子邮件地址,两个名称为一个单一的GitHub帐户。更重要的是,当我输入最后一句话:cask-repair --pull origin --push $github_user $outdated_cask。有两个错误:the requested upstream branch 'Andy1984' does not exist,和

代码语言:javascript
复制
Error creating pull request: Unprocessable Entity (HTTP 422)
Invalid value for "head"

结果是There was an error submitting the pull request. Have you forked the repo and made sure the pull and push remotes exist?,我很肯定我遵循了指示。怎么啦?

代码语言:javascript
复制
# install and setup script - only needed once
brew install vitorgalvao/tiny-scripts/cask-repair
cask-repair --help

# fork homebrew-cask to your account - only needed once
cd "$(brew --repository)/Library/Taps/caskroom/homebrew-cask/Casks"
hub fork

# use to update <outdated_cask>
outdated_cask='<the-cask-i-want-to-update>'
github_user='<my-github-username>'
cd "$(brew --repository)/Library/Taps/caskroom/homebrew-cask/Casks"

cask-repair --pull origin --push $github_user $outdated_cask
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-04-22 06:41:34

根据文档,您还可以使用脚本来推送现有木桶的新版本。

检查:https://github.com/caskroom/homebrew-cask/blob/master/CONTRIBUTING.md#updating-a-cask

代码语言:javascript
复制
# install and setup script - only needed once
brew install vitorgalvao/tiny-scripts/cask-repair
cask-repair --help

# use to update <outdated_cask>
cask-repair <outdated_cask>
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38114323

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档