Git view specific code submission records

Because the time is too long, I forgot who the author of the code submission is, and the submission id has been submitted, so I need to query the submission record.

git blame && git show View the modification history of
a line of code First check who wrote a line of code and in which commit it was submitted:

The display format is:
commit ID | author of code submission | submission time | line number of code in the file | actual code

To get the commit ID, we can know the commit ID, and then use the command: git show commitID to see

git blame -L 161,161 src/main/java//client/service/OpenAccountCustomerClient.java

Here is the 161 line of code submission record.

Guess you like

Origin blog.csdn.net/qq_33371766/article/details/110448463