Last active
January 28, 2025 19:54
-
-
Save Captnwalker1/adb994746f9fca68f84952e23027921c to your computer and use it in GitHub Desktop.
Powershell git assume-unchanged for all modified files
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
foreach ($file in (git status --porcelain | Where-Object { $_ -match '^[ M][M ]' } | ForEach-Object { $_.Substring(3) })) { | |
git update-index --assume-unchanged $file | |
Write-Output "Marked $file as unchanged" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment