user494461
user494461

Reputation:

how to know if a file was ever modified in the git repo after adding it

I am using a third party library js file.

How can I check if I have ever modified it after adding it (after downloading the copy from the library's website) using GIT?

Also how do I know when I added a specific file to git?

Upvotes: 0

Views: 78

Answers (2)

K S Nidhin
K S Nidhin

Reputation: 2650

you can get the difference/modifications on the file using the following command

  git diff ../path to file

Upvotes: 0

Alex D
Alex D

Reputation: 30465

Look at the log for that file alone:

 git log -- /path/to/file

Upvotes: 2

Related Questions