- Get a listing of the files in the commit you want to rollback:
- Get the commit hash for the commit before the one you want to "roll back"
- Write a script like this one:
#!/bin/bash
dir=core/modules
for X in cassandra elasticsearch tigergraph graph; do
path=${dir}/${X}/main.tf
git show 02c5afc:${path} > $path
done