material/tool/git/github.md
RongersLY 93cecd7544 BIG MERGE!!!
BIG ADD:
- docker
- archlinux

FIX:
- vim
- c_cpp
  - string hash
  - linux /dev/random
  - thread
  - STL
- linux
  - command
    - last

OTHERS:
- add antenna.md
- mirrors
- makefile.md
2025-04-04 17:35:35 +08:00

41 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# github
## 目录
- [search](#search)
## search
1. 限定搜索范围
- `in:name`:搜索仓库名称。
- `in:description`:搜索仓库描述。
- 使用`is:issue``is:pr`搜索Issue或Pull Request。
- **星标筛选**:使用`stars:>1000`筛选星标数超过1000的项目。
- **fork数量筛选**:使用`forks:>100`筛选fork数量超过100的项目。
- **语言筛选**:使用`language:java`筛选使用Java语言的项目。
- **仓库大小筛选**:使用`size:>=1000`筛选仓库大小超过1000KB的项目。
- **更新时间筛选**:使用`pushed:>2020-01-01`筛选自2020年1月1日之后有更新的项目。
- **搜索特定用户或组织的仓库**:使用`user:username``org:organization`
- **搜索特定文件**:使用`filename:README.md`搜索包含特定文件名的项目。
- **搜索代码**必须登录GitHub账户且仅对默认分支和小于384KB的文件进行索引。
2. 排序搜索结果
- **按交互排序**`sort:interactions`按反应和评论的最高组合数排序。
- **按反应排序**`sort:reactions`按最高反应数排序。
- **按作者日期排序**`sort:author-date`按作者日期降序排序。
加速器
https://cloud.tsinghua.edu.cn/d/df482a15afb64dfeaff8/
推送到github
git remote add origin https://
git branch -M master
git push -u origin master
github访问令牌
创建:
用户头像 -> setting -> 最后一项 -> 创建令牌
tips:令牌要当场复制,离开页面就没有了
使用:
git remote set-url origin https://<your_token>@github.com/<USERNAME>/<REPO>.git