GitHb 项目搜索技巧:让你更高效精准地搜索项目 港控/mmm° 2021-08-19 12:01 420阅读 0赞 ![format_png][] 作者:Suwanbin 链接:www.cnblogs.com/suwanbin/p/12113751.html # Github 搜索技巧 # > 参考自 B站 up 主 CodeSheep 的视频【如何高效地在网上找开源项目做!在职程序员实际演示一波视频教程操作】,然后写着写着一好奇就去看文档了 > > 现在这篇博客相当于官方文档的翻译版???? > > 当然,你也可以去看【官方文档】体验原汁原味的教程 干啥的?相当于给搜索结果添加过滤条件,看下下面的案例你就知道啦,过滤 github 的搜索结果,更精确搜索项目 ## 案例 ## ### 普通搜 ### 关键词:`python` ![format_png 1][] ### 搭配技巧搜 ### 搜索 github 中,项目描述(description)中有 python 并且 2019-12-20 号之后有更新过的项目 `in:description python pushed:>2019-12-20` 效果:加了限制条件后,查出来的项目数有了明显的减少 [![format_png 2][]][format_png 2 1] ## 限定词 ## 可通过指定 `仓库名(repository name)、项目描述(description)、内容(contents)、说明文件(readme.md)` 来搜索项目 ![format_png 3][] 其他骚操作?自己看官方文档(感觉用不到,就不整理了吧):【找仓库中的某个文件】、【在 github 上查找代码片段】 ### 查找某个用户或组织的项目 ### ![format_png 4][] ## 辅助限定词 ## > 可以通过限制 `项目大小(size)、拥护者数(followers)、fork数(forks)、stars数(stars)、创建时间(created)、更新时间(pushed)、项目所用语言(language)、topic标签(topic)、topic标签数(topics)...`来筛选项目 > > 辅助限定词可以多个并用,用空格隔开就行,可以搭配限定词使用,也可单独使用 > > (关于项目是否被 fork 这个点我不是很懂,就不写案例了) > > * `in:name python size:<=1000` 查出项目名字中有 python 且小于 1MB 的项目 > * `size:<=1000` 查出项目大小小于 1MB 的项目 [![format_png 5][]][format_png 2 1] ### 还没搞懂的(关于 forks、mirror、issues) ### 1. stars:>=500 fork:true language:php matches repositories with the at least 500 stars, including forked ones, that are written in PHP. 2. case pushed:>=2013-03-06 fork:only matches repositories with the word "case" that were pushed to on or after March 6th, 2013, and that are forks. 3. mirror:true GNOME matches repositories that are mirrors and contain the word "GNOME." 查出是镜像并且包含 GNOME 关键字的项目(github 上 mirror 啥意思不太懂) 4. mirror:false GNOME matches repositories that are not mirrors and contain the word "GNOME." 5. good-first-issues:>2 javascript matches repositories with more than two issues labeled good-first-issue and that contain the word "javascript." 6. help-wanted-issues:>4 react matches repositories with more than four issues labeled help-wantedand that contain the word "React." ## 排序(放的是官网的链接) ## > 推荐直接在页面上的搜索结果点击排序,何必再去学一手呢? > > 官网文档:【给你的查询结果排序】 [![format_png 6][]][format_png 2 1] # 使用指南 # 自己灵活的使用限定词和辅助限定词写出一套规则即可查出你想要的项目 他们的位置先后、数量都无所谓,加上只是多了一个条件 TIps:欢迎关注微信公众号:Java后端 ## 练习案例 ## > 常用到的其实有就是这些,上面的还是太多了,你有那个需求,又找不到方式的时候可以查查看 # 项目名字(name)里有 python 的 in:name python # 名字(name)里有 python 的并且 stars 大于 3000 的 in:name python starts:>3000 # 名字(name)里有 python 的并且 stars 大于 3000 、forks 大于 200 的 in:name python starts:>3000 forks:>200 # 详情(readme)里面有 python 的并且 stars 大于 3000 的 in:readme python starts:>3000 # 描述(description)里面有 python 的并且 stars 大于 3000 的 in:description python starts:>3000 # 描述(description)里面有 python 的并且是 python 语言的 in:description python language:python # 描述(description)里面有 python 的并且 2019-12-20 号之后有更新过的 in:description python pushed:>2019-12-20 **- END -** **推****荐****阅****读 ** ***1.*** [扎心一问:分库分表就能无限扩容吗][Link 1] ***2. ***[全面了解 Nginx 主要应用场景][Nginx] ***3.*** [一场近乎完美基于 Dubbo 的微服务改造实践][Dubbo] ***4.*** [什么是一致性 Hash 算法?][Hash] ***5.*** [团队开发中 Git 最佳实践][Git] ![format_png 7][] **喜****欢****文****章****,****点****个****在看 **![format_png 8][] [format_png]: /images/20210730/b3c6a468198e4b47ac51568ad53d6349.png [format_png 1]: /images/20210730/62dadec2fc5949e3a2e366e371524606.png [format_png 2]: /images/20210730/1672224c97ba41ffb2b803aac79333ed.png [format_png 2 1]: http://mp.weixin.qq.com/s?__biz=Mzg2MjEwMjI1Mg%3D%3D&chksm=ce0da17bf97a286df119047a25b7de51621fe542816673bb4aa3ebd8ab97b09a86ed7db2e2ee&idx=3&mid=2247489272&scene=21&sn=ce74938072fc73a808d83ccb474db46d#wechat_redirect [format_png 3]: /images/20210730/28b1495dacf6436ab166e401a14575f8.png [format_png 4]: /images/20210730/c87f6bdc75bc4ed2846fee64c2903057.png [format_png 5]: /images/20210730/6b13ad275db74b36a9a3a6deba6cb352.png [format_png 6]: /images/20210730/dbe66c66a4574e9c8f6afec6caae2e45.png [Link 1]: https://blog.csdn.net/qq_37217713/article/details/103917809 [Nginx]: https://blog.csdn.net/qq_37217713/article/details/103867187 [Dubbo]: http://mp.weixin.qq.com/s?__biz=Mzg2MjEwMjI1Mg%3D%3D&chksm=ce0da97ff97a20698d70c73bbfb05bd550cdbc2551f26503d65bacf48b13eaee057876786cad&idx=2&mid=2247491324&scene=21&sn=0609a429071c9ff699c11dad19be1b78#wechat_redirect [Hash]: https://blog.csdn.net/qq_37217713/article/details/103535328 [Git]: https://blog.csdn.net/qq_37217713/article/details/102481709 [format_png 7]: /images/20210730/e3ee1fe8da034b9297a8564c0e4ad474.png [format_png 8]: /images/20210730/b48a5b206fbb4ca299684c0e90391164.png
还没有评论,来说两句吧...