-
-
Save ziriax/110767db34f99c494803957c5cb13fd2 to your computer and use it in GitHub Desktop.
git reset hard all subfolders (not submodules)
This file contains hidden or 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 ".git" -Hidden -Directory | %{pushd "$_\.." ; git reset --hard; popd } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment