UP | HOME

New Blog Architecture

Table of Contents

I've never fully learnt git before(only search for garbage when meeted with problem), so I recently read ProGit.
And I have some good ideas on my repo architecture: I should make use of branch, obviously.

1. Idea is:

seperate the source file(org) and the generated files(html, feed.xml)
so I can

1.1. clearly look at the diff

1.2. delete the generated files if I want

because those static files are really unecessary and takes much space

2. So what

2.1. use filter-branch to remove the huge feed.xml in the full history

2.2. ignore the generated files in the source repo

2.3. merge the source repo into site repo when I think it's ok

don't remove the source(org) in the site repo,
if build in main and checkout to site, those html will be overwritten

2.4. and I will use the same stratagy on my YW sub-website if there's no problem

3. Need Advice

I'm really new to do this.
If you have a better idea, or this is somehow useful to you,
contact me, please!

Author: dongdigua

Date: 2022-11-20 日 00:00

Build: 2022-12-03 六 12:02

LICENCE: CC BY-NC-SA

If you have any idea, please contact me! I may add your comment