How To Find File History With Git And Visual Studio Code

The concern is documenting reading through the history of changes of a file using git. As I deal with both clients and colleagues who make frequent changes to config files, I quickly need to see the timeline of changes per file.

1. VS Code Timeline feature — easiest view of file history

  • In VS Code, run the command
  • Shortcut: CTRL + SHIFT + P → Enter Timeline → Select Explorer: Focus on Timeline View

2. VS Code Open in Github Extension

3. git log -p

  • this is not git diff
  • run git pull → fetch & merge potential merges
  • run git log -p <filename> → see what has been changed

4. file history: who & commit message

Technical Support Engineer/Technical Writer (Snowplow Analytics). with a passion for Python / writing documentation. More about me: