Support the ongoing development of Laravel.io →
Database Architecture
Last updated 2 years ago.
0

you can try writing a git hook to "post-checkout" and "pre-checkout" to run the db:seed

or more easily change the db you're working based on the branch?

Last updated 9 years ago.
0

I'm also curious about this, is there any tutorial steps to follow? Thank you in advanced

0

apparently there's no pre-checkout hook. Each time your working tree is updated the hook will run making your checkouts slower though.

Here's a tutorial that deletes python cache files you can easily edit this to do what you want

http://codeinthehole.com/writing/a-useful-git-post-checkout-hook-for-python-repos/

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

MeeDNite meednite Joined 12 May 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.