Skip to content

Instantly share code, notes, and snippets.

@obfusk
Last active October 23, 2022 21:30
Show Gist options
  • Select an option

  • Save obfusk/10707773e12aa35ff24c47e2ba6004db to your computer and use it in GitHub Desktop.

Select an option

Save obfusk/10707773e12aa35ff24c47e2ba6004db to your computer and use it in GitHub Desktop.
touch files in git repo based on last commit timestamp
git ls-files | xargs touch -d "@$( git log -1 --pretty=%ct )"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment