📝 docs: README.md의 submodule 설치 및 업데이트 지침 수정

This commit is contained in:
“hyeonggkim”
2026-04-13 13:42:23 +09:00
parent 615293dae0
commit d9fa54eb2e

View File

@@ -46,15 +46,14 @@ gameservice-fe-agent/
프로젝트 루트에서 아래 명령을 실행합니다.
```bash
# 원격 저장소 URL은 팀 내부 Git 주소로 교체하세요
# 순서대로 입력
#1
git submodule add https://git.sginfra.net/sgp-web-d/gameservice-fe-agent.git .claude/common
#2
git submodule update --init --recursive
```
또는 이 저장소에 포함된 헬퍼 스크립트를 사용해도 됩니다.
```bash
curl -fsSL <install.sh raw URL> | bash
#3
bash .claude/common/scripts/install.sh https://git.sginfra.net/sgp-web-d/gameservice-fe-agent.git
```
설치 후 프로젝트 구조는 다음과 같이 됩니다.
@@ -90,23 +89,16 @@ your-project/
### 3. 공통 지침 업데이트 받기
```bash
# 최신 main 브랜치의 공통 지침으로 업데이트
# 최신 master 브랜치의 공통 지침으로 업데이트
git submodule update --remote .claude/common
# 또는 헬퍼 스크립트
bash .claude/common/scripts/update.sh
```
업데이트 이후에는 submodule 포인터가 변경되므로 반드시 커밋합니다.
```bash
git add .claude/common
git commit -m "chore: update gameservice-fe-agent submodule"
```
---
## 📝 프로젝트 지침 양식 사용
## 📝 프로젝트 지침 양식 사용 (수동 파일 복사 or /script/init-project.sh 사용)
`.claude/project/` 에 들어갈 지침은 공통 저장소의 `templates/project/` 에 양식으로 관리됩니다.
팀원은 `install.sh` 를 사용하면 submodule 설치와 동시에 이 양식을 자동으로 복사받아 작성을