Git Assessment: Fundamentals (EN)
This assessment checks the level Fundamentals. It combines conceptual questions, diagnostic cases and small design decisions.
Rules
- Do not use production secrets.
- Justify every answer with Git terminology.
- Separate working tree, index, commit graph, references and remotes.
- Name recovery steps when you mention risky operations.
Questions
Question 01: Repository
Describe a realistic Git scenario for Repository. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 02: Working Tree
Describe a realistic Git scenario for Working Tree. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 03: Index
Describe a realistic Git scenario for Index. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 04: Commits
Describe a realistic Git scenario for Commits. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 05: Status
Describe a realistic Git scenario for Status. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 06: Diff
Describe a realistic Git scenario for Diff. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 07: Log
Describe a realistic Git scenario for Log. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 08: Restore
Describe a realistic Git scenario for Restore. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 09: Repository
Describe a realistic Git scenario for Repository. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 10: Working Tree
Describe a realistic Git scenario for Working Tree. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 11: Index
Describe a realistic Git scenario for Index. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 12: Commits
Describe a realistic Git scenario for Commits. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 13: Status
Describe a realistic Git scenario for Status. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 14: Diff
Describe a realistic Git scenario for Diff. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 15: Log
Describe a realistic Git scenario for Log. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 16: Restore
Describe a realistic Git scenario for Restore. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 17: Repository
Describe a realistic Git scenario for Repository. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 18: Working Tree
Describe a realistic Git scenario for Working Tree. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 19: Index
Describe a realistic Git scenario for Index. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 20: Commits
Describe a realistic Git scenario for Commits. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 21: Status
Describe a realistic Git scenario for Status. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 22: Diff
Describe a realistic Git scenario for Diff. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 23: Log
Describe a realistic Git scenario for Log. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 24: Restore
Describe a realistic Git scenario for Restore. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 25: Repository
Describe a realistic Git scenario for Repository. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 26: Working Tree
Describe a realistic Git scenario for Working Tree. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 27: Index
Describe a realistic Git scenario for Index. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 28: Commits
Describe a realistic Git scenario for Commits. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 29: Status
Describe a realistic Git scenario for Status. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 30: Diff
Describe a realistic Git scenario for Diff. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 31: Log
Describe a realistic Git scenario for Log. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 32: Restore
Describe a realistic Git scenario for Restore. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 33: Repository
Describe a realistic Git scenario for Repository. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 34: Working Tree
Describe a realistic Git scenario for Working Tree. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 35: Index
Describe a realistic Git scenario for Index. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 36: Commits
Describe a realistic Git scenario for Commits. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 37: Status
Describe a realistic Git scenario for Status. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 38: Diff
Describe a realistic Git scenario for Diff. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 39: Log
Describe a realistic Git scenario for Log. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Question 40: Restore
Describe a realistic Git scenario for Restore. Which states are affected, which command proves state, what team or security risk appears and which recovery path is appropriate?
Practical Case Study
You inherit a repository with unclear history, multiple branches, missing tags and possible secrets in old commits. Build a review plan covering status, log, reflog, remotes, tags, credentials, hooks and team rules.
Review Checklist for Fundamentals Assessment
- 01. document context and desired state: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 02. explain index state: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 03. read the commit graph: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 04. assess diff and patch: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 05. check remote relationship: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 06. isolate conflict cause: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 07. use reflog as recovery path: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 08. name history rewrite risk: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 09. assess credential impact: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 10. describe signature or hook boundary: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 11. write down rollback or recovery path: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 12. state a team rule: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 13. document context and desired state: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 14. explain index state: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 15. read the commit graph: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 16. assess diff and patch: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 17. check remote relationship: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 18. isolate conflict cause: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 19. use reflog as recovery path: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 20. name history rewrite risk: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 21. assess credential impact: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 22. describe signature or hook boundary: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 23. write down rollback or recovery path: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 24. state a team rule: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 25. document context and desired state: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 26. explain index state: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 27. read the commit graph: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 28. assess diff and patch: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 29. check remote relationship: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 30. isolate conflict cause: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 31. use reflog as recovery path: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 32. name history rewrite risk: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 33. assess credential impact: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 34. describe signature or hook boundary: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 35. write down rollback or recovery path: record which Git reference, commit, index state or remote is affected and how you prove the state.
- 36. state a team rule: record which Git reference, commit, index state or remote is affected and how you prove the state.
Practice Appendix: Fundamentals Assessment
This appendix provides a backlog for longer trainings, reviews and repetition. Each task is small enough to reproduce in a local lab repository.
A001. Repository
- Task: document context and desired state and explicitly relate the observation to
Repository. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A002. Working Tree
- Task: explain index state and explicitly relate the observation to
Working Tree. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A003. Index
- Task: read the commit graph and explicitly relate the observation to
Index. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A004. Commits
- Task: assess diff and patch and explicitly relate the observation to
Commits. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A005. Status
- Task: check remote relationship and explicitly relate the observation to
Status. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A006. Diff
- Task: isolate conflict cause and explicitly relate the observation to
Diff. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A007. Log
- Task: use reflog as recovery path and explicitly relate the observation to
Log. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A008. Restore
- Task: name history rewrite risk and explicitly relate the observation to
Restore. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A009. Repository
- Task: assess credential impact and explicitly relate the observation to
Repository. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A010. Working Tree
- Task: describe signature or hook boundary and explicitly relate the observation to
Working Tree. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A011. Index
- Task: write down rollback or recovery path and explicitly relate the observation to
Index. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A012. Commit
- Task: state a team rule and explicitly relate the observation to
Commit. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A013. HEAD
- Task: document context and desired state and explicitly relate the observation to
HEAD. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A014. Branch
- Task: explain index state and explicitly relate the observation to
Branch. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A015. Tag
- Task: read the commit graph and explicitly relate the observation to
Tag. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A016. Remote
- Task: assess diff and patch and explicitly relate the observation to
Remote. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A017. Refspec
- Task: check remote relationship and explicitly relate the observation to
Refspec. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A018. Merge
- Task: isolate conflict cause and explicitly relate the observation to
Merge. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A019. Rebase
- Task: use reflog as recovery path and explicitly relate the observation to
Rebase. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A020. Reflog
- Task: name history rewrite risk and explicitly relate the observation to
Reflog. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A021. Hook
- Task: assess credential impact and explicitly relate the observation to
Hook. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A022. Submodule
- Task: describe signature or hook boundary and explicitly relate the observation to
Submodule. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A023. Credential Helper
- Task: write down rollback or recovery path and explicitly relate the observation to
Credential Helper. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A024. Object Database
- Task: state a team rule and explicitly relate the observation to
Object Database. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A025. Repository
- Task: document context and desired state and explicitly relate the observation to
Repository. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A026. Working Tree
- Task: explain index state and explicitly relate the observation to
Working Tree. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A027. Index
- Task: read the commit graph and explicitly relate the observation to
Index. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A028. Commits
- Task: assess diff and patch and explicitly relate the observation to
Commits. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A029. Status
- Task: check remote relationship and explicitly relate the observation to
Status. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A030. Diff
- Task: isolate conflict cause and explicitly relate the observation to
Diff. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A031. Log
- Task: use reflog as recovery path and explicitly relate the observation to
Log. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A032. Restore
- Task: name history rewrite risk and explicitly relate the observation to
Restore. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A033. Repository
- Task: assess credential impact and explicitly relate the observation to
Repository. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A034. Working Tree
- Task: describe signature or hook boundary and explicitly relate the observation to
Working Tree. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A035. Index
- Task: write down rollback or recovery path and explicitly relate the observation to
Index. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A036. Commit
- Task: state a team rule and explicitly relate the observation to
Commit. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A037. HEAD
- Task: document context and desired state and explicitly relate the observation to
HEAD. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A038. Branch
- Task: explain index state and explicitly relate the observation to
Branch. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A039. Tag
- Task: read the commit graph and explicitly relate the observation to
Tag. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A040. Remote
- Task: assess diff and patch and explicitly relate the observation to
Remote. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A041. Refspec
- Task: check remote relationship and explicitly relate the observation to
Refspec. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A042. Merge
- Task: isolate conflict cause and explicitly relate the observation to
Merge. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A043. Rebase
- Task: use reflog as recovery path and explicitly relate the observation to
Rebase. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A044. Reflog
- Task: name history rewrite risk and explicitly relate the observation to
Reflog. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A045. Hook
- Task: assess credential impact and explicitly relate the observation to
Hook. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A046. Submodule
- Task: describe signature or hook boundary and explicitly relate the observation to
Submodule. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A047. Credential Helper
- Task: write down rollback or recovery path and explicitly relate the observation to
Credential Helper. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A048. Object Database
- Task: state a team rule and explicitly relate the observation to
Object Database. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A049. Repository
- Task: document context and desired state and explicitly relate the observation to
Repository. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A050. Working Tree
- Task: explain index state and explicitly relate the observation to
Working Tree. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A051. Index
- Task: read the commit graph and explicitly relate the observation to
Index. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A052. Commits
- Task: assess diff and patch and explicitly relate the observation to
Commits. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A053. Status
- Task: check remote relationship and explicitly relate the observation to
Status. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A054. Diff
- Task: isolate conflict cause and explicitly relate the observation to
Diff. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A055. Log
- Task: use reflog as recovery path and explicitly relate the observation to
Log. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A056. Restore
- Task: name history rewrite risk and explicitly relate the observation to
Restore. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A057. Repository
- Task: assess credential impact and explicitly relate the observation to
Repository. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A058. Working Tree
- Task: describe signature or hook boundary and explicitly relate the observation to
Working Tree. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A059. Index
- Task: write down rollback or recovery path and explicitly relate the observation to
Index. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A060. Commit
- Task: state a team rule and explicitly relate the observation to
Commit. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A061. HEAD
- Task: document context and desired state and explicitly relate the observation to
HEAD. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A062. Branch
- Task: explain index state and explicitly relate the observation to
Branch. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A063. Tag
- Task: read the commit graph and explicitly relate the observation to
Tag. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A064. Remote
- Task: assess diff and patch and explicitly relate the observation to
Remote. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A065. Refspec
- Task: check remote relationship and explicitly relate the observation to
Refspec. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A066. Merge
- Task: isolate conflict cause and explicitly relate the observation to
Merge. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A067. Rebase
- Task: use reflog as recovery path and explicitly relate the observation to
Rebase. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A068. Reflog
- Task: name history rewrite risk and explicitly relate the observation to
Reflog. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A069. Hook
- Task: assess credential impact and explicitly relate the observation to
Hook. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A070. Submodule
- Task: describe signature or hook boundary and explicitly relate the observation to
Submodule. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A071. Credential Helper
- Task: write down rollback or recovery path and explicitly relate the observation to
Credential Helper. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A072. Object Database
- Task: state a team rule and explicitly relate the observation to
Object Database. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A073. Repository
- Task: document context and desired state and explicitly relate the observation to
Repository. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A074. Working Tree
- Task: explain index state and explicitly relate the observation to
Working Tree. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A075. Index
- Task: read the commit graph and explicitly relate the observation to
Index. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A076. Commits
- Task: assess diff and patch and explicitly relate the observation to
Commits. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A077. Status
- Task: check remote relationship and explicitly relate the observation to
Status. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
A078. Diff
- Task: isolate conflict cause and explicitly relate the observation to
Diff. - Evidence: Write down at least one Git command, one expected result and one limit of that evidence.
- Team question: What coordination is required before this change lands in a shared branch?
- Security question: Which credentials, signatures, hooks or confidential files could be affected?
- Recovery: Explain whether
reflog,restore,reset,revert,merge --abort,rebase --abortor a backup is the right path.
Official Sources and Scope
The material is aligned with public Git documentation. GitHub, GitLab, Forgejo and other hosting platforms are mentioned only where they explain common Git workflows; they are not the same thing as Git itself.
- Git Reference: https://git-scm.com/docs
- Git Manual: https://git-scm.com/docs/git
- Pro Git Book: https://git-scm.com/book/en/v2
- git-submodule: https://git-scm.com/docs/git-submodule
- gitcredentials: https://git-scm.com/docs/gitcredentials
- git-credential-store: https://git-scm.com/docs/git-credential-store
- GitHub Certifications: https://docs.github.com/en/get-started/showcase-your-expertise-with-github-certifications/about-github-certifications
- GitHub Foundations on Microsoft Learn: https://learn.microsoft.com/en-us/credentials/certifications/github-foundations/
Additional Review Drills
Use these drills when the primary task is complete and the learner needs another pass over operational reasoning. They are intentionally evidence-oriented and can be answered in a local lab repository.
Drill 01: working tree
- State which Git state or reference is affected by
working tree. - Name one command that produces evidence and one field or line in the output that matters.
- Explain what can be concluded from that evidence and what cannot be concluded from it.
- Describe the safest recovery path for a shared training repository.
Drill 02: index
- State which Git state or reference is affected by
index. - Name one command that produces evidence and one field or line in the output that matters.
- Explain what can be concluded from that evidence and what cannot be concluded from it.
- Describe the safest recovery path for a shared training repository.
Drill 03: commit graph
- State which Git state or reference is affected by
commit graph. - Name one command that produces evidence and one field or line in the output that matters.
- Explain what can be concluded from that evidence and what cannot be concluded from it.
- Describe the safest recovery path for a shared training repository.
Drill 04: branch reference
- State which Git state or reference is affected by
branch reference. - Name one command that produces evidence and one field or line in the output that matters.
- Explain what can be concluded from that evidence and what cannot be concluded from it.
- Describe the safest recovery path for a shared training repository.
Drill 05: remote-tracking branch
- State which Git state or reference is affected by
remote-tracking branch. - Name one command that produces evidence and one field or line in the output that matters.
- Explain what can be concluded from that evidence and what cannot be concluded from it.
- Describe the safest recovery path for a shared training repository.
Drill 06: reflog
- State which Git state or reference is affected by
reflog. - Name one command that produces evidence and one field or line in the output that matters.
- Explain what can be concluded from that evidence and what cannot be concluded from it.
- Describe the safest recovery path for a shared training repository.
Drill 07: credential helper
- State which Git state or reference is affected by
credential helper. - Name one command that produces evidence and one field or line in the output that matters.
- Explain what can be concluded from that evidence and what cannot be concluded from it.
- Describe the safest recovery path for a shared training repository.
Drill 08: signature
- State which Git state or reference is affected by
signature. - Name one command that produces evidence and one field or line in the output that matters.
- Explain what can be concluded from that evidence and what cannot be concluded from it.
- Describe the safest recovery path for a shared training repository.
Drill 09: hook
- State which Git state or reference is affected by
hook. - Name one command that produces evidence and one field or line in the output that matters.
- Explain what can be concluded from that evidence and what cannot be concluded from it.
- Describe the safest recovery path for a shared training repository.
Drill 10: submodule
- State which Git state or reference is affected by
submodule. - Name one command that produces evidence and one field or line in the output that matters.
- Explain what can be concluded from that evidence and what cannot be concluded from it.
- Describe the safest recovery path for a shared training repository.
Drill 11: tag
- State which Git state or reference is affected by
tag. - Name one command that produces evidence and one field or line in the output that matters.
- Explain what can be concluded from that evidence and what cannot be concluded from it.
- Describe the safest recovery path for a shared training repository.
Drill 12: recovery
- State which Git state or reference is affected by
recovery. - Name one command that produces evidence and one field or line in the output that matters.
- Explain what can be concluded from that evidence and what cannot be concluded from it.
- Describe the safest recovery path for a shared training repository.
Drill 13: working tree
- State which Git state or reference is affected by
working tree. - Name one command that produces evidence and one field or line in the output that matters.
- Explain what can be concluded from that evidence and what cannot be concluded from it.
- Describe the safest recovery path for a shared training repository.
Drill 14: index
- State which Git state or reference is affected by
index. - Name one command that produces evidence and one field or line in the output that matters.
- Explain what can be concluded from that evidence and what cannot be concluded from it.
- Describe the safest recovery path for a shared training repository.
Drill 15: commit graph
- State which Git state or reference is affected by
commit graph. - Name one command that produces evidence and one field or line in the output that matters.
- Explain what can be concluded from that evidence and what cannot be concluded from it.
- Describe the safest recovery path for a shared training repository.
Drill 16: branch reference
- State which Git state or reference is affected by
branch reference. - Name one command that produces evidence and one field or line in the output that matters.
- Explain what can be concluded from that evidence and what cannot be concluded from it.
- Describe the safest recovery path for a shared training repository.