Home > Article > Development Tools > How to view submitted changes in git
In git, you can use the show command to view the submitted modifications. This command is used to display various types of objects. When used in conjunction with the submitted Id, you can view the submitted content. The syntax is "git show commitId ".
The operating environment of this article: Windows 10 system, Git version 2.30.0, Dell G3 computer.
How to check the submitted modifications in git
Sometimes we find that the code that has been online has been modified, or our own code has been overwritten . We need to know who did the operation and what modifications were made. This article will introduce how git views the submission record and the modification content of a certain submission
win logo key R, enter cmd to open the command line. (If git cannot be used on the cmd command line, please open Git Bash)
Enter the project root directory
Enter git log and press Enter
Each submission is output in the command line Records
Press the q key to exit viewing. Enter git show commitId.
For example, git show 3a29fdada4e347acd05d0d1aab311c0c285495b6
commitId is the id of each submission.
The command line outputs the modified content, as shown in the figure
#Recommended study: "Git Tutorial"
The above is the detailed content of How to view submitted changes in git. For more information, please follow other related articles on the PHP Chinese website!