Skip to content

Instantly share code, notes, and snippets.

@asd142513
Last active November 28, 2023 07:13
Show Gist options
  • Save asd142513/989e89aee761083cdde85684f489fc1f to your computer and use it in GitHub Desktop.
Save asd142513/989e89aee761083cdde85684f489fc1f to your computer and use it in GitHub Desktop.
fix line ending
for dir in */ ; do
pushd $dir
git diff --name-only | xargs -Iarg sed -i 's/\r$//' arg
popd
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment