Skip to content

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

1. Command to clone a Git repository
❌ git pull
✔️ git clone
❌ git download
❌ git copy

2. Public repository access on GitHub
❌ Choosing public allows anyone to see and commit to the repository.
❌ Choosing public allows people with a Github account to see and commit to the repository.
✔️ Choosing public allows anyone to see the repository but you still choose who can commit to it.
❌ Choosing public allows anyone to see the repository, but only people with a Github account can commit to it.

3. Creating a Personal Access Token
❌ In the directory of your repository
✔️ In the Developer settings of your Github account
❌ In the settings for your local repository
❌ In the settings of your remote repository

4. Changing the name associated with Git commits
❌ This will affect future commits and change the name for past commits.
❌ This will affect future commits, but you can change the name for past commits using git config.
✔️ This will only affect future commits and won’t change the name used for past commits.
❌ This will affect future commits and automatically change the name for past commits.

5. Command git status shows
✔️ The different states of files in your working directory and staging area
❌ The status of files in your working directory but not your staging area
❌ The status of files in your staging area but not your working directory
❌ Only the status of files that are staged but not yet committed

6. When commit message is required
❌ When you commit to another user’s repository
❌ Every time you log out of Github
❌ Only when you permit another user to commit to your repository
✔️ Every time you commit changes

7. Command git commit – select all that apply
✔️ It captures a snapshot of the project’s currently staged changes
✔️ It stores the commit message for this new commit
❌ It adds content from the working directory into the staging area
✔️ It stores the current contents of the index in a new commit

8. Fetch and update local repository with remote changes
❌ git push origin main
❌ git commit
✔️ git pull origin main
❌ git add README.md

9. Pushing from local when remote has new files not in local
✔️ Your attempt will return an error
❌ Your local repository will create another remote repository
❌ Your remote repository will automatically overwrite your local repository
❌ Your local repository will automatically overwrite your remote repository

10. Command to push changes to remote repository
✔️ git push origin main
❌ git agree origin main
❌ git pull origin main
❌ git update origin main


📌 Summary Table

Q# Correct Answer(s)
1 git clone ✔️
2 Public: anyone can see, you choose who can commit ✔️
3 Developer settings of GitHub ✔️
4 Only affects future commits ✔️
5 Shows different states of files ✔️
6 Every time you commit ✔️
7 Snapshot ✔️, stores commit message ✔️, stores index ✔️
8 git pull origin main ✔️
9 Returns an error ✔️
10 git push origin main ✔️