Currently I am implementing some git hooks that clears my notebook cells when committing. Unfortunately, after committing the script fails (because the files are cleaned and interpreted as new files, which makes sense). Thus, I need to re-do the add & commit command for the exact same files.
Is there any way to automate this? Or at least how can I re-do the same add and commit of the same files again.