DEV Community

Discussion on: I'm a Git Master, Ask Me Anything

Collapse
 
ferkungamaboobo profile image
Doug R. Thomas, Esq.

We're finally moving to git from a dev/production server for website maintenance. I've used git before, but never set up workflows, etc.

2 q's :
In the Git Flow - Is there a way to maintain the development branch on one subdomain while the master branch is on another?

Is there a good method for tracking (and ignoring certain?) changes to databases?

Collapse
 
gonedark profile image
Jason McCreary

I'm not sure I understand the first question.

As far as the second, are you tracking the entire database (structure + data) in Git? Or just migrations?

Collapse
 
ferkungamaboobo profile image
Doug R. Thomas, Esq. • Edited

Hi Jason, thanks for your reply

2 - would prefer to track the whole database.

1 - Our current workflow uses a dev/staging copy of the site at dev.domain.com & the live/production site at (www.)domain.com. I'm trying to figure out how to merge that workflow into something close to a Git Flow framework if possible? I know I'm not explaining this well at all :\

Thread Thread
 
ferkungamaboobo profile image
Doug R. Thomas, Esq.

For anyone who finds this post - worktrees were the answer to #1.

This was the ultimate solution: github.com/ferkungamaboobo/firmida...