9148c358d0
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를 Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류. - 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로 자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거, 동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거. - 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming, Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business, Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로, 나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는 title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백). 원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지. - 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서. - 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는 지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지. - Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경. - 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
4.3 KiB
4.3 KiB
id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
| id | title | category | status | canonical_id | aliases | duplicate_of | source_trust_level | confidence_score | verification_status | tags | raw_sources | last_reinforced | github_commit | tech_stack | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| wiki-2026-0508-source-control | Source Control | 10_Wiki/Topics | verified | self |
|
none | A | 0.95 | applied |
|
2026-05-10 | pending |
|
Source Control
매 한 줄
"매 commit 의 atomic unit of intent". Source control (VCS) 의 code changes 의 의 history 의 record 의, 매 collaboration / rollback / branching 의 의 enable 의. 2026 의 dominant 의 git, 매 emerging: Jujutsu (jj) 의 ergonomic next-gen, 매 Sapling (Meta).
매 핵심
매 git 의 mental model
- Snapshot, not diffs. 매 commit 의 tree (file content hashes) 의 reference.
- Three trees: working dir, index (stage), HEAD.
- Refs: branches, tags, HEAD 의 commit pointers.
- Object store: blobs, trees, commits, tags — content-addressed (SHA-1/SHA-256).
매 modern workflows
- Trunk-based: short-lived branches (<24h), main 의 always deployable.
- GitHub Flow: feature branch → PR → merge to main.
- GitFlow (legacy): heavy 의 develop/release/hotfix branches — 매 2026 의 거의 not 추천.
매 응용
- Trunk-based + feature flags (modern PLG SaaS).
- Stacked PRs (Graphite, Sapling) for big changes.
- Monorepo (Nx, Turborepo, Bazel).
💻 패턴
Conventional commits + commitlint
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', ['feat','fix','chore','docs','refactor','test','perf','build','ci']],
'scope-empty': [2, 'never'],
'subject-max-length': [2, 'always', 72],
},
};
Pre-push hook (husky)
#!/usr/bin/env bash
. "$(dirname -- "$0")/_/husky.sh"
pnpm test --run && pnpm lint
Squash-merge default + linear history
gh repo edit OWNER/REPO \
--enable-squash-merge --enable-rebase-merge=false --enable-merge-commit=false \
--delete-branch-on-merge
Stacked PRs (Graphite)
gt branch create feat-foundation
gt branch create feat-api
gt submit --stack
Bisect 매 regression
git bisect start
git bisect bad HEAD
git bisect good v2.3.0
git bisect run pnpm test:e2e:smoke
git bisect reset
Rerere 의 conflict 의 reuse
git config --global rerere.enabled true
Worktrees 의 parallel branches
git worktree add ../proj-hotfix hotfix/v2.3.1
git worktree remove ../proj-hotfix
Sparse-checkout (monorepo)
git sparse-checkout init --cone
git sparse-checkout set apps/web packages/ui
Signed commits (sigstore gitsign)
gitsign init
git -c commit.gpgsign=true commit -m "feat: thing"
gitsign verify HEAD --certificate-identity=me@org.com \
--certificate-oidc-issuer=https://accounts.google.com
매 결정 기준
| 상황 | Workflow |
|---|---|
| SaaS startup, daily deploy | trunk-based + feature flags |
| OSS library | GitHub Flow + protected main |
| regulated (releases) | release branches + CHANGELOG |
| monorepo of apps | trunk-based + Nx affected + sparse |
기본값: trunk-based, squash-merge, conventional commits, signed commits (gitsign), CODEOWNERS-protected main.
🔗 Graph
- 부모: DevOps
- 응용: Trunk-Based Development · Code Review · Monorepo
- Adjacent: CODEOWNERS · Conventional Commits · GitOps
🤖 LLM 활용
언제: commit message generation, PR description drafts, conflict resolution suggestions, blame summarization. 언제 X: rebasing 의 LLM-driven 의 unchecked — 매 history 의 corrupt 위험.
❌ 안티패턴
- Long-lived feature branches (>1wk): 매 merge hell.
- Force-push to shared branches: 매 teammates' work 의 destroy.
- Big-bang commits: 매 review impossible, bisect useless.
- No CODEOWNERS: 매 누구나 의 critical path 의 merge.
- Secrets in history: 매 even after rotation, 매 forever exposed.
🧪 검증 / 중복
- Verified (Pro Git book, GitHub flow docs, Trunk-Based Development site, Conventional Commits 1.0).
- 신뢰도 A.
🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — git workflow + stacked PR + sigstore patterns |