How do I make a file update history with git?

Asked 1 years ago, Updated 1 years ago, 41 views

For example, how can I create an update history for a file called index.html in /Usres/yuu/mysrc on the c drive?

If you understand, please take care of me.m(__)m

git

2022-09-30 20:14

1 Answers

If you want to view the update history with the git command, you can view it with the git log command.(-p option specifies the file.)

cd C:\Usres\yuu\mysrc
git log-p.\index.html

As your previous question seemed to use VS Code, if you want to display history graphically instead of commands on the VS Code, you cannot do so with the basic functionality.
You must install extensions such as Git Graph.
Reference: How to view Git commit history in a tree structure in a time-series manner in VSCode

If you don't understand Git's pull or init operations, please refer to the comments in this or the previous question.


2022-09-30 20:14

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.