CS FundamentalsModerateWipro · Cognizant technical pattern
Which Git command shows, line by line, the commit and author that last modified each line of a file?
- A. git log --oneline
- B. git blame
- C. git diff
- D. git show
Correct answer: B. git blame
git blame annotates every line with the commit, author and date of its last change. git log lists commits, git diff compares versions, and git show displays one commit.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- In Test-Driven Development, what is the correct order of the basic cycle?
- A project faces three risks: A: probability 0.3, loss ₹5 lakh B: probability 0.6, loss ₹2 lakh C: probability 0.1, loss ₹12 lakh Ranking…
- A team commits 40 story points to a 10-day sprint. After day 6, the burndown chart shows 28 points remaining. If work continues at the…
- A library following Semantic Versioning is at version 2.4.7. The next release removes a public method that clients may be calling. What…
- A bug exists at the current commit but not at a commit 200 commits earlier. Using git bisect (a binary search through history), what is…
- What distinguishes continuous deployment from continuous delivery?