CiscoCisco
300-435 · Question #96
300-435 Question #96: Real Exam Question with Answer & Explanation
The correct answer is D: git add plugins/*. To move all files within the plugins directory to the local Git staging area, the git add plugins/* command must be used.
Network Automation Foundation
Question
A developer must move all the files in the plugins directory to the local Git staging area. Which Git command must be used to perform this task?
Options
- Agit track plugins/
- Bgit commit plugins/*
- Cgit branch plugins/
- Dgit add plugins/*
Explanation
To move all files within the plugins directory to the local Git staging area, the git add plugins/* command must be used.
Common mistakes.
- A. There is no standard Git command 'git track'; tracking is generally an implied concept when adding files or setting up remote branches.
- B. The 'git commit' command is used to record staged changes to the repository history, not to move files to the staging area.
- C. The 'git branch' command is used to create, list, or delete branches, not to stage files.
Concept tested. Git staging area commands
Reference. https://git-scm.com/docs/git-add
Topics
#Git#Version Control#Staging Area#Git Commands
Community Discussion
No community discussion yet for this question.