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
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.
© 2024 OneMinuteCode. All rights reserved.