Git reset files with typechange status

iphipps picture iphipps · Jul 2, 2014 · Viewed 15.6k times · Source

When finding and replacing across a large repository, I get a bunch of files with a typechange status. These are mostly symlinks.

Rather than

git checkout -- eachfile.name

Is there a way to reset only typechange files?

Answer

muzz picture muzz · Dec 13, 2014
git status | grep typechange | awk '{print $2}' | xargs git checkout