Skip to content

Instantly share code, notes, and snippets.

@shadowbq
Created May 30, 2012 12:06
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 shadowbq/2835841 to your computer and use it in GitHub Desktop.
Save shadowbq/2835841 to your computer and use it in GitHub Desktop.
git forcefully downcase rename files
#!/usr/bin/env bash
for i in *; do
n=`echo $i | tr [:upper:] [:lower:]`
if [ $i != $n ]; then
# echo -e "$i to $n"
git mv -f $i $n
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment