Skip to content

Instantly share code, notes, and snippets.

@8enet
Created October 15, 2015 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 8enet/66a8aac1a0fcce9650e4 to your computer and use it in GitHub Desktop.
Save 8enet/66a8aac1a0fcce9650e4 to your computer and use it in GitHub Desktop.
github contributor guide

更新homebrew中的软件版本

1、fork homebrew
2、git clone https://github.com/{yourname}/homebrew.git
3、如果用网页版编辑可以跳过。修改采用Sublime Text3作为编辑器,export HOMEBREW_EDITOR='/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'
4、以tomcat为例,brew edit tomcat,一般只需要修改前几行中的url,mirrorsha256urlmirror从发行软件的 页可以看到,其中mirror要是可以直接下载的链接,sha256是下载文件的sha256值,我们可以先下载mirror中的这个文件,然后用shasum -a 256 [/downfile]计算文件的sha256值。 5、

git commit -a -m 'update tomcat {version}' git push origin master
网页版提交pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment