Is it possible to run `poetry install` every time I switch git branch?
Answered
If I switch between branches with different requirements I would like Idea to run `poetry install` automatically. Is it possible?
Please sign in to leave a comment.
Hi,
Yes, you must configure post-checkout git hook:
Please see https://stackoverflow.com/questions/1011557/is-there-a-way-to-trigger-a-hook-after-a-new-branch-has-been-checked-out-in-git