You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tools in the python ecosystem often leave cache directories (__pycache__). These occupy otherwise empty directories when changing branches and get in the way of having a clean workspace. It may be possible to add git hooks to automatically clean up these empty directories.
I looked into this and it takes a bit of work to introduce custom hooks, especially if trying to have multiple functions react to the same hook (post-checkout, in this case). You have to modify the default files in .git/hooks ect.
Tools in the python ecosystem often leave cache directories (
__pycache__
). These occupy otherwise empty directories when changing branches and get in the way of having a clean workspace. It may be possible to add git hooks to automatically clean up these empty directories.See this [stackoverflow post](https://stackoverflow.com/questions/1504724/automatically-remove-pyc-files-and-otherwise-empty-directories-when-i-check-ou
and this gist
The text was updated successfully, but these errors were encountered: