Investigate the Secret Project Repository
Before you begin, note that a Git repository has been set up for you at ~/project/secret-project. This repository contains the original code and the mysterious changes. Your workspace is already initialized and ready for investigation.
Tasks
- Navigate to the secret project repository at
~/project/secret-project.
- Use Git diff commands to identify the files that have been modified but not yet staged.
- Determine which files have changes staged for commit.
- Find the specific line that was added to the file
encryption.js.
Requirements
- All operations should be performed in the
~/project/secret-project directory.
- You need to identify:
- The names of files with unstaged changes
- The names of files with staged changes
- The exact line added to
encryption.js
- Fill in the
~/investigation_report.txt file with your findings. A template has been provided for you. You can open and edit the file using a text editor on the desktop.
Example
After successfully completing the challenge, your ~/investigation_report.txt might look something like this:
Unstaged files:
xxx.js
xxx.js
Staged files:
xxx.js
xxx.js
Added line in encryption.js:
const ……
Make sure to replace xxx.js with the actual filenames and const …… with the exact line that was added. Don't change the format of the report, including the blank lines.