Lesson 54 +15 XP

Setup and Config Commands

These commands set up Git and manage its configuration. You find full docs for each at git-scm.com/docs.

git


bash
git - version
git - help

The git command itself is the front door to everything. Run it alone to see a list of common commands.

git config


bash
git config - global user.name "Your Name"
git config - global user.email "you@example.com"
git config - list

Config sets your identity and preferences. Levels: - system, - global, - local.

git help


bash
git help config
git config -h

Help shows documentation. The -h flag gives a quick summary.

git bugreport


bash
git bugreport

Collects your Git info into a report file, useful when asking for help.

git version


bash
git version

Prints the installed Git version.

TL;DR

  • git config sets your identity and preferences.
  • git help shows command docs, -h gives quick help.
  • git bugreport gathers system info for support.
  • git - version and git version check your install.