Created
October 25, 2018 12:16
-
-
Save krokofant/597b4a373bef1154f38c65bca7390a4c to your computer and use it in GitHub Desktop.
Perform name changes with git (git mv) recursively with PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem -Recurse -Include *.js | % { git mv --dry-run $_.FullName $_.FullName.replace | |
(".js",".ts") } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remove
--dry-run
to actually run