跳至正文
Wener Notes

Github

约 1 分钟阅读
bash
curl https://github.com/wenerme.keys >> ~/.ssh/authorized_keys
curl https://api.github.com/users/wenerme/keys

# .diff .patch
curl -LO https://github.com/electron-react-boilerplate/electron-react-boilerplate/pull/2875.diff
git am 2875.diff

curl https://api.github.com
curl https://api.github.com/meta

gh

bash
brew install gh

gh auth login
gh extension install github/gh-copilot

# ghcs - gh copilot suggest
# ghce - gh copilot explain
[ -n "$BASH_VERSION" ] && eval "$(gh copilot alias -- bash)"
[ -n "$ZSH_VERSION" ] && eval "$(gh copilot alias -- zsh)"
  • ~/.config/gh/config.yml
  • ~/.config/gh/host.yml
  • ~/.config/gh-copilot/config.yml
  • .github/copilot-instructions.md

Git LFS

text
version https://git-lfs.github.com/spec/v1
oid sha256:4cac19622fc3ada9c0fdeadb33f88f367b541f38b89102a3f1261ac81fd5bcb5
size 84977953

快速添加 License

获取最新版本

bash
github-latest-version() {
  set -o pipefail
  curl -sfL https://api.github.com/repos/$1/releases/latest | jq .tag_name -r
  local r=$?
  set +o pipefail
  return $r
}
bash
# 但这种有多个 tag 的无解
github-latest-version kubernetes-sigs/nfs-subdir-external-provisioner

Socialify

text
language:"Protocol Buffer"
text
https://github.com/search?q=path:**/CLAUDE.md&type=code
https://github.com/search?q=path:**/GEMINI.md&type=code

Markdown

关联信息

反向链接、本文链接的其他页面和外部资料。

反向链接

  • Forge Awesome
    笔记 · github

    Git · hg · fossil · VCS, tickets, wiki, docs, notes, forum, chat, UI, RBAC · vs Git · whynotgit · Hosted · github · gitee

参考资料

GitHub6 条
其他外链10 条
最近更新commit 4b6e1d9编辑