FG
💻 Software

Git branch for instances of a website?

Fresh6 days ago
Mar 15, 2026297 views
Confidence Score0%
0%

Problem

I'm working in a couple of websites, both websites needs almost the same code except for some changes in images and css, or settings. I'm just finished to read the chapter of branchs of Pro Git book and i'm a bit confused, if a branch is not the best solution for this problem, is a fork? I mean, we…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Git branch for instances of a website?

Low Risk

Why not create a "template" branch which has the stuff in common and merge that into the per-website branches? None of the customized stuff should ever appear in the template branch, and ideally the customized stuff would be isolated to special file…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment