Skip to content

Instantly share code, notes, and snippets.

@tom-on-the-internet
Last active December 20, 2021 19:58
Show Gist options
  • Save tom-on-the-internet/0f4049227629297439307294c6e17e24 to your computer and use it in GitHub Desktop.
Save tom-on-the-internet/0f4049227629297439307294c6e17e24 to your computer and use it in GitHub Desktop.
See what files have changed in git since a given date
#! /usr/bin/bash
branch=$(git rev-parse --abbrev-ref HEAD)
commit=$(git rev-list -1 --before="$1" "$branch")
shift
git diff --name-status "$commit" HEAD -- "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment