How to auto-create a branch when branching out locally?

Dear Neon community,

I watched the branching video Database Branching with Neon API - YouTube and in there, Raouf is talking about auto-creating branches on neon when running git checkout -b locally. I am wondering, and this is not clear from the docs, how can I enable this?

Thank you!

Hi @ThibaultJanBeyer ,

Thank you for your question.
In the video, I used git-hooks and the Neon API to create branches on git checkout.

You can find the script and instructions in this repo.

I hope this helps. Let me know if you have any questions.

1 Like

Awesome, thank you, will give it a try!