This is slightly off topic for this forum unless regarded as a Jupyter workflow problem, so apols in advance if it is off-topic…
I have a git repository with:
a set of notebooks in the
masterbranch that contain run notebooks with output cells populated;
a set of derived notebooks derived from
cleanbranch that have same notebooks but with output cells stripped…
Tools such as nbstripout help automate the creation of “output cleaned” notebooks.
Is there a set of git commit hooks / filters I can use so that a commit of one or more notebooks to the
master branch will result in a cleaned copy of the same notebook(s) being committed to the
master branch may contain a lot of notebooks in nested directories, so ideally I only want to run the notebook cleaner over notebooks that have been updated.
it would also be useful if the
clean branch were configured from the start to ignore