Is there a way to perform a git checkout for only certain file types (.xlf), which recurses down through the entire repository? The results should contain the struture of th
UPDATE: Check Dadaso's answer for a solution that will work in most of cases.
You can try something like this, using git ls-tree and grep:
git checkout origin/master -- `git ls-tree origin/master -r --name-only | grep ".xlf"`
Note this expects a remote origin in a master branch. Also you must provide the right filter/extension to grep.
Before this command, you should have done something like this:
git init
git remote add origin
git fetch