Git은 Claude Code 설정을 비난합니다.
hackernews
|
|
💼 비즈니스
#claude
#infrastructure
#sync
#개발환경
#동기화
#ai 딜
#claude code
#git
#계정관리
원문 출처: hackernews · Genesis Park에서 요약 및 분석
요약
클로드 코드(Claude Code)는 ~/.claude 폴더에 CLAUDE.md, skills/, commands/, agents/, hooks/, settings.json 등 모든 설정을 일반 텍스트로 저장하므로 Git으로 버전 관리가 가능하다. 이 방법을 활용하면 여러 컴퓨터 간 설정을 동기화하고, 반복적으로 개선하면서 잘못된 변경사항은 blame이나 revert로 되돌릴 수 있다. 또한 skills 폴더를 공유하거나 다른 AI 도구에서도 동일한 설정 파일을 symlink로 활용할 수 있어 개인 지식 기반을 여러 환경에서 일관되게 유지할 수 있다.
본문
Here's a pro tip regarding Claude Code usage if you're a dev - save your Claude skills and more to git . This gives you a mechanism to: - keep all your setups in sync (personal, work, etc) - iteratively develop your setup (skills) - blame and revert bad changes - and more++ ~/.claude tree claude saves everything to disk in a neat little unobscured .claude folder in your home dir: ~/.claude | | # COMMIT and forget! ├── CLAUDE.md ├── skills/ ├── commands/ ├── agents/ ├── hooks/ | | | # COMMIT if machines are similar (same/similar OS) ├── settings.json ├── statusline-command.sh | | | # COMMIT if dirs across machines | # are similar/distinct to avoid conflicts ├── projects/ | | | # OPTIONALLY COMMIT for record-keeping ├── plans/ ├── todos/ | | | # DON'T COMMIT ├── plugins/ # may have cache or binaries ├── cache/ ├── debug/ ├── file-history/ ├── telemetry/ └── history.jsonl setup for a simple chill setup: - git init ~/.claude - add the following .gitignore ~/.claude/.gitignore # always ignore cache/ debug/ file-history/ ide/ session-env/ sessions/ shell-snapshots/ telemetry/ usage-data/ backups/ downloads/ history.jsonl plugins/ agents/**/*.jsonl projects/**/*.jsonl projects/**/*.json projects/**/*.txt # rm below if machines are similar (os, term setup) settings.json statusline-command.sh # rm below if folder structure across machines is compatible projects/ # rm below for record-keeping plans/ todos/ - push to a private repo - push and pull from various comps to keep things in sync. (you can also get fancier and use dotfiles or GNU Stow) fin I abuse Claude like no other, and with this setup I gain the ability to: - track/iterate/blame/rollback - CLAUDE.md - skills - hooks - agents - settings - share skills with others - see what I did in a day by looking at plans - use it on multiple computers to ensure my corpus of personal skills grows with me and stays with me - try skills in other harnesses - like Codex - with a simple symlink, since skills are now an open standard AI is an amazing tool that has augmented the way I code. It seems fitting I treat it like a proper tool in my toolkit.
Genesis Park 편집팀이 AI를 활용하여 작성한 분석입니다. 원문은 출처 링크를 통해 확인할 수 있습니다.
공유