Home > Development Tools > git > How to view submitted changes in git

How to view submitted changes in git

WBOY
Release: 2022-01-07 10:45:15
Original
21795 people have browsed it

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 ".

How to view submitted changes in git

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

How to view submitted changes in git

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

How to view submitted changes in git

#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!

Related labels:
git
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template