UiPath-ADAv1 Version Control and Libraries Practice Question
A developer is using Git with UiPath Studio. The developer has made changes to a workflow file and wants to commit only that file, excluding other modified files. Which Git command should the developer use?
⚠ Common exam trap
The trap here is assuming that 'git commit' automatically stages changes; it does not, and using 'git add .' would stage all files, not just the desired one.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
git add <workflow_file>
To commit only a specific file, the developer must first stage that file using 'git add <file>'. This adds only the changes in that file to the staging area. Then, 'git commit' will commit only the staged changes. Other commands like 'git add .' stage everything, 'git commit' commits staged changes, and 'git stash' shelves changes. Selective staging is key for precise commits.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
git add <workflow_file>
Why this is correct
The 'git add <file>' command stages only the specified file. This allows the developer to selectively stage the workflow file and then commit only that file. It is the correct way to include specific changes in a commit while excluding others.
- ✗
git stash
Why it's wrong here
The 'git stash' command temporarily shelves changes, allowing the developer to work on something else. It does not stage or commit specific files. Using stash would remove the changes from the working directory, which is not the desired action for committing a specific file.
- ✗
git add .
Why it's wrong here
The 'git add .' command stages all modified and new files in the current directory and its subdirectories. This would include the workflow file and all other modified files, which is not what the developer wants. It does not allow selective staging.
- ✗
git commit -m "Update workflow"
Why it's wrong here
The 'git commit' command commits staged changes. Without staging the specific file first, it will commit whatever is already staged, which may include unintended files. It does not stage files; it only records changes that are in the staging area.
About these practice questions
This UiPath-ADAv1 question is part of Courseiva's 285-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official UiPath exam blueprint
This UiPath-ADAv1 practice question is part of Courseiva's free UiPath certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the UiPath-ADAv1 exam.