What does git commit record?
QuizEasyAsked in: Accenture, Capgemini, TCS, Wipro
You change LoginTest.java and config.properties, then run git add LoginTest.java and git commit -m "Fix login test". What does the commit contain?
- Only the change to LoginTest.java; config.properties stays modified but uncommitted
- Both files, because both were changed
- Nothing, because you must stage every changed file first
- Both files, and the commit is pushed to GitHub
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.