in one of our projects, MysQL-Dumps are synced with git. One file for each table in the database. After pulling/merging the dumps are imported to the local database with a hook. The problem is now, I need to find all table dumps that were changed with the pull to import only these. How can I get the post-merge-hook to know, which files changed? It is possibly not only one commit before that gets merged, usually, there are more commits.
How can I get a list of modified files?
git fetch && git diff --name-only ..origin/master
. I do not understand why the answers do not considergit fetch
.