Skip to content
CogniSkill

FREE COURSE KNOWLEDGE CHECK

Git and GitHub for Scripts and Projects — Knowledge Check

Review the worked course material with three explained questions.

3 questionsLearning check · review every explanationRelated course: Git and GitHub for Scripts and Projects

Three original learning questions with explanations. This is a short course check, not a certification mock exam or readiness prediction. Public answers support self-review; sign in to save a scored attempt.

Course questions with explanations

Review each question and reveal its explanation without an account. Sign in to save a scored attempt on these same questions. This short check does not predict exam readiness.

1. What does a commit record?

  1. The staged snapshot
  2. Every future edit
  3. The screen display
Show answer and explanation for question 1

Correct answer: A. The staged snapshot

Commits use the staged content.

2. Does .gitignore erase tracked secrets from history?

  1. No
  2. Only after renaming
  3. Yes
Show answer and explanation for question 2

Correct answer: A. No

Ignoring is not history removal or credential revocation.

3. Which command inspects staged changes?

  1. git diff --cached
  2. git status --short only
  3. git push
Show answer and explanation for question 3

Correct answer: A. git diff --cached

The cached diff compares the staged snapshot.

Sign in to take this free practice test and save your result.

Sign in