Lesson 12 of 51 ~5 min
Course progress
0%

Quiz: Install and Basic Setup

Test your knowledge of installing Git and configuring identity.

Which command shows the installed Git version?

git version —show
git —version
git version -v

How do you set your global user name in Git?

git set user.name “Your Name”
git config —global user.name “Your Name”
git init —user “Your Name”

Which command sets the default branch name for new repositories to main?

git branch —default main
git config —global init.defaultBranch main
git config init.defaultBranch main

Where should you usually set user.name and user.email?

Globally, so it applies to all repositories on your machine
Only per repository, never globally
In the remote server only

Which of the following is NOT a typical way to install Git on macOS?

Install Xcode Command Line Tools
Use Homebrew: brew install git
Download from the Microsoft Store