Gitチートシート
Gitコマンドの検索可能なリファレンス: 日常的なワークフロー、取り消しと復旧、worktree、bisect、sparse-checkoutなど
- First-time setupGit 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> を実際の値に置き換えて使用してください。