Skip to content

Instantly share code, notes, and snippets.

@advanceboy
Last active March 1, 2016 11:19
Show Gist options
  • Save advanceboy/ff4203352ffda2cd3308 to your computer and use it in GitHub Desktop.
Save advanceboy/ff4203352ffda2cd3308 to your computer and use it in GitHub Desktop.
PowerShell 使って git diff で タイムスタンプを コミット時間 (commiter date) に変更する
git diff --name-only <commit> HEAD --diff-filter=CMART | gi | %{ $_.LastWriteTime = [datetime](git log --pretty=format:%ci --max-count=1 $_.FullName) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment