Note
本文档由 WeHub 基于上游 README 翻译整理,属于社区翻译,非官方中文文档。
English · 原始项目 · 上游 README
原作者、版权与许可证归属以原始项目及本仓库 LICENSE 文件为准。
把你自己的源代码变成打字挑战。
让 AI 知道谁才是老大——只有你、你的键盘,还有你写过的那些「罪证」代码。
curl -sSL https://raw.githubusercontent.com/unhappychoice/gittype/main/install.sh | bash
curl -sSL https://raw.githubusercontent.com/unhappychoice/gittype/main/install.sh | bash -s -- --version v0.5.0
brew install gittype
cargo install gittype
如果你已安装 Nix),可以直接运行 GitType:
# Stable version (recommended)
nix run github:unhappychoice/gittype
# Development version (latest from main branch)
nix run github:unhappychoice/gittype#unstable
从我们的 发布页.) 获取适用于你平台的预编译二进制文件。
可用平台:
x86_64-apple-darwin(Intel Mac)aarch64-apple-darwin(Apple Silicon Mac)x86_64-unknown-linux-gnu(Linux x64)aarch64-unknown-linux-gnu(Linux ARM64)x86_64-pc-windows-msvc(Windows)# cd into your messy codebase
cd ~/that-project-you-never-finished
# Start typing your own spaghetti code (uses current directory by default)
gittype
# Or specify a specific repository path
gittype /path/to/another/repo
# Clone and play with any GitHub repository
gittype --repo clap-rs/clap
gittype --repo https://github.com/ratatui-org/ratatui
gittype --repo git@github.com:dtolnay/anyhow.git
# Discover and practice with trending GitHub repositories
gittype trending # Browse trending repos interactively
gittype trending rust # Filter by language (Rust)
# Play with cached repositories interactively
gittype repo play
pubic static void main 再也不是手误了「说白了,你需要一个逃避真正工作的借口,而这个借口相当不错。」
当游戏变得过于上瘾时,这些文档正好派上用场:
cargo install 然后放松更喜欢看代码而不是打字?看看 Gitlogue)——一款终端屏保,用逼真的打字效果动画呈现你的 Git 提交历史。
MIT - 因为分享就是关爱(也是法律要求)
由一群厌倦打「hello world」的开发者,用 ❤️ 和过量咖啡因打造
如果你觉得这个项目有用,请考虑:
每一份支持都有帮助。谢谢!