git > show file changes and history

1. use-case

  • I repeatedly pull changes from repos and need to quickly check what has happened to config files
  • My colleagues troubleshoot data pipelines and, learning from them, I need to see what they have done to the files in question

2. pull & log -p

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

3. file history: who & commit message

Image for post
Image for post

4. sources

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store