Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github 速查表 #44

Open
Ray-56 opened this issue Aug 15, 2021 · 0 comments
Open

Github 速查表 #44

Ray-56 opened this issue Aug 15, 2021 · 0 comments
Labels
Cheat Sheet 速查表,翻译:作弊用纸、小抄,但是它是合法的。

Comments

@Ray-56
Copy link
Owner

Ray-56 commented Aug 15, 2021

Github 速查表

[TOC]

git.io

使用 git.io 设置 Github 项目的短链接

# url 为 地址,code 为短链码
curl -i https://git.io -F url="https://github.com/Ray-56/m-dream/issues" -F "code=~dream"

如何删除

更多了解

特定文件

.gitattributes文件,映射仓库代码语言显示类型,eg:

*.html linguist-language=typescript
*.js linguist-language=typescript
*.css linguist-language=less

元数据徽章

shields.io 开源项目的质量元数据徽章

搜索

github docs

使用一些关键词查询想要的资源

awesome Rust # 可以查到 Rust 的一些集合资料,关键词 awesome
React demo # 学习新技术的时候,可以搜索到其它人上传的例子,关键词 demo
chrome extension starter # 用于开发 chrome 插件的空项目,查找特定空间的关键词 starter
chrome extension tutorial # chrome 插件开发的教程,技术教程的关键词 tutorial

日期格式必须遵循ISO8601标准

可以在 https://github.com/search 内的 ProTip 中查看

范围查询

  • tools stars:>200 匹配有 tools 字样、star 超过 200 的仓库
  • tools stars:>=200
  • tools size:<=10000 匹配有 tools 字样、小于 10KB 的文件
  • tools stars:<=30 匹配有 tools 字样、star 不超过 30 的仓库
  • tools stars:100..200 匹配 tools 字样、star 在 100~200 区间的仓库
  • tools created:>2012-03-11 匹配 tools 字样、在 2012年3月11日 之后创建的YYYY-MM-DD
  • tools created:*..2012-03-11 含有 tools 字样、在 2012年3月11日 之前创建的

排除特定结果

  • hello NOT world 匹配含有 hello 但不含有 world 的仓库
  • tools stars:>100 -language:javascript 匹配 tools 字样、超过 100 star,但不是以 JavaScript 编写的仓库;-号在 Baidu、Google 搜索引擎也同样适用

根据仓库名称、说明文件内容搜索

适用in限定符,可以将搜索限制为仓库名称、说明、自述、文件内容或这些的任意组合。如果省略此限定符,则只搜索仓库名称、说明、文件内容

  • tools in:name 仓库名称中含有 tools 的名称
  • tools in:name,description 仓库名称或说明中含有 tools 的仓库
  • tools in:readme 仓库自述文件中有 tools 的仓库
  • repo:owner/name 特定仓库名称,用户名为 owner 的 hello-world 的仓库
  • foo in:file 文件内容中出现 foo 的代码
  • foo inpath 文件路径中出现 foo 的代码
@Ray-56 Ray-56 added the Cheat Sheet 速查表,翻译:作弊用纸、小抄,但是它是合法的。 label Aug 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cheat Sheet 速查表,翻译:作弊用纸、小抄,但是它是合法的。
Projects
None yet
Development

No branches or pull requests

1 participant