Git Change a Bulk of Files (Images) to Lowercase -


i got 100 of images needed rename .jpg .jpg. wrote gulp task , renamed them all. git not recognizing change.

i found on single files: i change capitalization of directory , git doesn't seem pick on it

but don't want on each image hand possible use s.th. this

git mv **/*/.jpg **/*.temp

git mv **/*/.temp **/*.jpg

the images in diff. folders! e.g. src/a, src/a/b src/b ...

there small change answer given @jvdm make first code snippet work.

for line in $(find -type f -name '*.jpg'               | sed 's@\(.*\)\.jpg@\1.jpg \1.jpg/')     git mv $line done 

Comments