A developer needs to prepare the file README.md in the working tree for the next commit operation using Git. Which command needs to be used to accomplish this?
B is correct
Possible answers:
A. git -a README.md
"git -a" is invalid
B. git add README.md
"prepares" the file "README.md" by moving it from the local workspace to the staging area (index)
C. git add README.md staging
same as B, but would also try to add the file "staging" to the staging area, which will result in an error if the file does not exist
D. git commit README.md
moves the file "README.md" directly from the local workspace to the local repository
B is correct:
git add README.md
then
git commit -m "updated read me"
upvoted 2 times
...
This section is not available anymore. Please use the main Exam Page.200-901 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
wqmppds
Highly Voted 3 years, 4 months agoherrmann69
Most Recent 10 months, 1 week agomacxsz
2 years, 6 months agodesignated
2 years, 9 months ago