312-97 practice question 5 of 35
(Walter O’Brien recently joined as a junior DevSecOps engineer in an IT company located in Lansing, Michigan. His organization develops robotic…
Full set: 100 questionsThe correct command to configure Git settings is git config. The question's options contain a typo, using get instead of git. Assuming this typo, option B provides the correct keys for setting the user's name and email: user.name and user.email. The --global flag ensures this configuration applies to all repositories for the current user on the system. This is a one-time setup command typically run after installing Git.
A. The command get is incorrect, and the key user-name (with a hyphen) is not the valid configuration key for the username.
C. The command get git config is syntactically incorrect. The correct command is simply git config.
D. The command get is incorrect, and the keys username and useremail (with underscores) are not the valid configuration keys.
1. Chacon, S., & Straub, B. (2014). Pro Git (2nd ed.). Apress. Chapter 1.6, Getting Started - First-Time Git Setup. The documentation explicitly states the commands are git config --global user.name "John Doe" and git config --global user.email [email protected].
2. Git Documentation. (n.d.). git-config Documentation. git-scm.com. Retrieved from https://git-scm.com/docs/git-config. The official documentation lists user.name and user.email as the correct configuration variables.
Keep practicing
Take the free 312-97 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 312-97 practice questions
- Question 1(Sandra Oliver joined SinClare Soft Pvt. Ltd. as a DevSecOps engineer in January of 2010.…
- Question 2(Robert Wheeler has been working as a DevSecOps engineer in an IT company for the past 5 …
- Question 3(Debra Aniston is a DevSecOps engineer in an IT company that develops software products a…
- Question 4(Craig Kelly has been working as a software development team leader in an IT company over…
- Question 6(SinCaire is a software development company that develops web applications for various cl…
- Question 7(William Scott, after completing his graduation in computer science, joined an IT company…
