Skip to content

Instantly share code, notes, and snippets.

@krokofant
Created October 25, 2018 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krokofant/597b4a373bef1154f38c65bca7390a4c to your computer and use it in GitHub Desktop.
Save krokofant/597b4a373bef1154f38c65bca7390a4c to your computer and use it in GitHub Desktop.
Perform name changes with git (git mv) recursively with PowerShell
Get-ChildItem -Recurse -Include *.js | % { git mv --dry-run $_.FullName $_.FullName.replace
(".js",".ts") }
@krokofant
Copy link
Author

krokofant commented Oct 25, 2018

Remove --dry-run to actually run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment