Skip to content

Module 1 challenge: Introduction to Git :Introduction to Git and GitHub (Google IT Automation with Python Professional Certificate) Answers 2025

1. Git is primarily used for
❌ Managing databases
✔️ Version control
❌ Creating websites
❌ Designing graphics

2. Command mkdir my-git-repo returns
❌ A repository named my-git-repo
❌ A repository named mkdir
❌ A directory named mkdir
✔️ A directory named my-git-repo

3. Command that displays staged, unstaged, and untracked changes
✔️ git status
❌ git commit
❌ git config
❌ git init

4. Best description of a repository
✔️ A repository is a location where all the files of a particular project are stored.
❌ A repository is all changes whether they have been staged or not
❌ A repository is a collection of Virtual Machines

5. Command git --version does
❌ Uninstalls Git
✔️ Checks if Git is installed and shows the version
❌ Updates Git to latest version
❌ Installs Git

6. First step to install Git on Linux
❌ Download Git from website
❌ Run git –version
✔️ Run sudo apt install git in the terminal
❌ Create a GitHub account

7. Best definition of the staging area
❌ A directory without a Git repository
❌ Where files are not yet tracked by Git
✔️ Where files are gathered and prepared for Git before committing them
❌ A repository of Git commits

8. Result of using git commit
❌ It changes the configuration of the repository
✔️ It stores the current contents of the index in a new commit along with the commit message
❌ It changes the status of the repository
✔️ A snapshot is captured of the project’s currently staged changes

9. After a commit, command to look at changes
❌ git add
❌ git changes
✔️ git diff
❌ git status

10. git log command displays
❌ A unique commit ID at the top of each commit
❌ The commit message
❌ The status of the repository
✔️ The commit history of the repository


📌 Summary Table

Q# Correct Answer(s)
1 Version control ✔️
2 A directory named my-git-repo ✔️
3 git status ✔️
4 Repository stores all project files ✔️
5 Checks Git version ✔️
6 sudo apt install git ✔️
7 Files gathered for commit ✔️
8 Stores index in commit ✔️, snapshot captured ✔️
9 git diff ✔️
10 Commit history ✔️