Git 速查表
可搜索的 Git 命令参考:日常工作流、撤销与恢复、Worktree、二分排查 (Bisect)、稀疏检出等
- First-time setup需要 Git 2.28+
git config --global user.name "Your Name" git config --global user.email "you@example.com" git config --global init.defaultBranch mainIdentity used for every commit, and main as the default branch name for new repositories.
所有命令均已对照 Git 官方文档核对。请将 <placeholders> 替换为您自己的实际值。