メインコンテンツへスキップ
kitlocal.dev

Gitチートシート

ローカルで実行

100% ブラウザ内で処理されます。入力や出力が端末の外に送信されることはありません。

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 main

    Identity used for every commit, and main as the default branch name for new repositories.

各コマンドはGit公式ドキュメントに基づいて確認されています。<placeholders> を実際の値に置き換えて使用してください。