Entry

Stage Only Specific Files

Difficulty: entry

Source: devops-interviews/devops-interview-questions by Alex Muradov

Answer

Scenario:

You have a Git repository at /home/interview/repo where you modified three files: app.js, style.css, and config.json.

Task:

Stage only app.js and style.css for commit in the repository at /home/interview/repo, leaving config.json unstaged.


📹 Video Solution