@kood/claude-code 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -460,7 +460,7 @@ var installAllCommands = async (templates, targetDir) => {
|
|
|
460
460
|
|
|
461
461
|
// src/index.ts
|
|
462
462
|
var program = new Command();
|
|
463
|
-
program.name("claude-code").description("Claude Code documentation installer for projects").version("0.1.
|
|
463
|
+
program.name("claude-code").description("Claude Code documentation installer for projects").version("0.1.5");
|
|
464
464
|
program.option(
|
|
465
465
|
"-t, --template <names>",
|
|
466
466
|
"template names (comma-separated: tanstack-start,hono)"
|
package/package.json
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
현재 git 상태를 확인하고, 아래 규칙에 따라 작업을 진행해주세요.
|
|
2
|
+
|
|
3
|
+
**추가 지시사항**: $ARGUMENTS
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 실행 절차
|
|
8
|
+
|
|
9
|
+
### 추가 지시사항이 없는 경우 (기본 동작)
|
|
10
|
+
1. `git status`로 현재 상태 확인
|
|
11
|
+
2. `git diff`로 변경 내용 분석
|
|
12
|
+
3. 스테이징 안 된 변경사항 → `git add`
|
|
13
|
+
4. 커밋 안 된 변경사항 → 논리적 단위로 분리하여 `git commit`
|
|
14
|
+
5. 최종 `git status`로 완료 확인
|
|
15
|
+
|
|
16
|
+
### 추가 지시사항이 있는 경우
|
|
17
|
+
- 사용자의 지시사항을 우선적으로 따름
|
|
18
|
+
- 예: `/git push` → push 진행, `/git 특정파일만 커밋` → 해당 파일만 처리
|
|
2
19
|
|
|
3
20
|
---
|
|
4
21
|
|
|
@@ -19,12 +36,13 @@
|
|
|
19
36
|
|
|
20
37
|
## ✅ ALWAYS (필수)
|
|
21
38
|
|
|
22
|
-
###
|
|
39
|
+
### 커밋 형식
|
|
23
40
|
|
|
24
|
-
```bash
|
|
25
|
-
git add <관련 파일들>
|
|
26
|
-
git commit -m "<prefix>: <설명>"
|
|
27
41
|
```
|
|
42
|
+
<prefix>: <설명>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**한 줄로 간결하게** 작성합니다. 본문이나 푸터는 작성하지 않습니다.
|
|
28
46
|
|
|
29
47
|
### ⭐ 커밋 분리 원칙
|
|
30
48
|
|
|
@@ -48,16 +66,6 @@ git commit -m "docs: API 문서 업데이트"
|
|
|
48
66
|
|
|
49
67
|
---
|
|
50
68
|
|
|
51
|
-
## 📝 커밋 형식
|
|
52
|
-
|
|
53
|
-
```
|
|
54
|
-
<prefix>: <설명>
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
**한 줄로 간결하게** 작성합니다. 본문이나 푸터는 작성하지 않습니다.
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
69
|
## 🏷 Prefix 목록
|
|
62
70
|
|
|
63
71
|
| Prefix | 용도 | 예시 |
|
|
@@ -123,30 +131,6 @@ feat: 로그인, 회원가입, 프로필 기능 추가
|
|
|
123
131
|
|
|
124
132
|
---
|
|
125
133
|
|
|
126
|
-
## 🔄 작업 흐름
|
|
127
|
-
|
|
128
|
-
```bash
|
|
129
|
-
# 1. 작업 전 최신 코드 동기화
|
|
130
|
-
git pull origin main
|
|
131
|
-
|
|
132
|
-
# 2. 기능 A 작업 완료 → 커밋
|
|
133
|
-
git add src/feature-a/
|
|
134
|
-
git commit -m "feat: 기능 A 구현"
|
|
135
|
-
|
|
136
|
-
# 3. 기능 B 작업 완료 → 커밋
|
|
137
|
-
git add src/feature-b/
|
|
138
|
-
git commit -m "feat: 기능 B 구현"
|
|
139
|
-
|
|
140
|
-
# 4. 문서 작업 완료 → 커밋
|
|
141
|
-
git add docs/
|
|
142
|
-
git commit -m "docs: 기능 문서 추가"
|
|
143
|
-
|
|
144
|
-
# 5. 푸시
|
|
145
|
-
git push origin main
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
134
|
## 📦 커밋 분리 가이드
|
|
151
135
|
|
|
152
136
|
### 언제 커밋을 분리해야 하나요?
|
|
@@ -159,117 +143,3 @@ git push origin main
|
|
|
159
143
|
| 리팩토링 + 기능 추가 | ✅ 분리 |
|
|
160
144
|
| 동일 기능의 관련 파일들 | 🔄 묶어도 됨 |
|
|
161
145
|
| 동일 기능의 타입 + 구현 | 🔄 묶어도 됨 |
|
|
162
|
-
|
|
163
|
-
### 예시: 사용자 관리 기능 개발
|
|
164
|
-
|
|
165
|
-
```bash
|
|
166
|
-
# 1. 인증 기능 커밋
|
|
167
|
-
git add src/auth/
|
|
168
|
-
git commit -m "feat: 사용자 인증 기능 추가"
|
|
169
|
-
|
|
170
|
-
# 2. 사용자 관리 커밋
|
|
171
|
-
git add src/users/
|
|
172
|
-
git commit -m "feat: 사용자 CRUD 기능 추가"
|
|
173
|
-
|
|
174
|
-
# 3. 유효성 검사 커밋
|
|
175
|
-
git add src/validators/
|
|
176
|
-
git commit -m "feat: 입력값 유효성 검사 추가"
|
|
177
|
-
|
|
178
|
-
# 4. 테스트 커밋
|
|
179
|
-
git add tests/
|
|
180
|
-
git commit -m "test: 사용자 관리 테스트 추가"
|
|
181
|
-
|
|
182
|
-
# 5. 문서 커밋
|
|
183
|
-
git add docs/
|
|
184
|
-
git commit -m "docs: 사용자 API 문서 추가"
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
---
|
|
188
|
-
|
|
189
|
-
## 🌿 브랜치 전략
|
|
190
|
-
|
|
191
|
-
### 간단한 프로젝트
|
|
192
|
-
```
|
|
193
|
-
main ← 모든 작업 직접 커밋
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### 팀 프로젝트
|
|
197
|
-
```
|
|
198
|
-
main
|
|
199
|
-
└── feature/기능명
|
|
200
|
-
└── fix/버그명
|
|
201
|
-
└── hotfix/긴급수정
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
### 브랜치 명명
|
|
205
|
-
```bash
|
|
206
|
-
feature/user-authentication
|
|
207
|
-
feature/payment-integration
|
|
208
|
-
fix/session-error
|
|
209
|
-
hotfix/security-patch
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
---
|
|
213
|
-
|
|
214
|
-
## 📋 자주 사용하는 명령어
|
|
215
|
-
|
|
216
|
-
```bash
|
|
217
|
-
# 상태 확인
|
|
218
|
-
git status
|
|
219
|
-
|
|
220
|
-
# 변경 내용 확인
|
|
221
|
-
git diff
|
|
222
|
-
|
|
223
|
-
# 최근 커밋 로그
|
|
224
|
-
git log --oneline -10
|
|
225
|
-
|
|
226
|
-
# 커밋 취소 (작업 내용 유지)
|
|
227
|
-
git reset --soft HEAD~1
|
|
228
|
-
|
|
229
|
-
# 스테이징 취소
|
|
230
|
-
git restore --staged .
|
|
231
|
-
|
|
232
|
-
# 변경사항 임시 저장
|
|
233
|
-
git stash
|
|
234
|
-
git stash pop
|
|
235
|
-
|
|
236
|
-
# 특정 파일만 스테이징
|
|
237
|
-
git add <파일경로>
|
|
238
|
-
|
|
239
|
-
# 대화형 스테이징 (부분 커밋용)
|
|
240
|
-
git add -p
|
|
241
|
-
```
|
|
242
|
-
|
|
243
|
-
---
|
|
244
|
-
|
|
245
|
-
## 📚 .gitignore
|
|
246
|
-
|
|
247
|
-
```gitignore
|
|
248
|
-
# Dependencies
|
|
249
|
-
node_modules/
|
|
250
|
-
|
|
251
|
-
# Build
|
|
252
|
-
dist/
|
|
253
|
-
.output/
|
|
254
|
-
build/
|
|
255
|
-
|
|
256
|
-
# Environment
|
|
257
|
-
.env
|
|
258
|
-
.env.local
|
|
259
|
-
.env.*.local
|
|
260
|
-
|
|
261
|
-
# IDE
|
|
262
|
-
.idea/
|
|
263
|
-
.vscode/
|
|
264
|
-
*.swp
|
|
265
|
-
|
|
266
|
-
# OS
|
|
267
|
-
.DS_Store
|
|
268
|
-
|
|
269
|
-
# Cache
|
|
270
|
-
.cache/
|
|
271
|
-
.turbo/
|
|
272
|
-
|
|
273
|
-
# Logs
|
|
274
|
-
*.log
|
|
275
|
-
```
|
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
현재 git 상태를 확인하고, 아래 규칙에 따라 작업을 진행해주세요.
|
|
2
|
+
|
|
3
|
+
**추가 지시사항**: $ARGUMENTS
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 실행 절차
|
|
8
|
+
|
|
9
|
+
### 추가 지시사항이 없는 경우 (기본 동작)
|
|
10
|
+
1. `git status`로 현재 상태 확인
|
|
11
|
+
2. `git diff`로 변경 내용 분석
|
|
12
|
+
3. 스테이징 안 된 변경사항 → `git add`
|
|
13
|
+
4. 커밋 안 된 변경사항 → 논리적 단위로 분리하여 `git commit`
|
|
14
|
+
5. 최종 `git status`로 완료 확인
|
|
15
|
+
|
|
16
|
+
### 추가 지시사항이 있는 경우
|
|
17
|
+
- 사용자의 지시사항을 우선적으로 따름
|
|
18
|
+
- 예: `/git push` → push 진행, `/git 특정파일만 커밋` → 해당 파일만 처리
|
|
2
19
|
|
|
3
20
|
---
|
|
4
21
|
|
|
@@ -19,12 +36,13 @@
|
|
|
19
36
|
|
|
20
37
|
## ✅ ALWAYS (필수)
|
|
21
38
|
|
|
22
|
-
###
|
|
39
|
+
### 커밋 형식
|
|
23
40
|
|
|
24
|
-
```bash
|
|
25
|
-
git add <관련 파일들>
|
|
26
|
-
git commit -m "<prefix>: <설명>"
|
|
27
41
|
```
|
|
42
|
+
<prefix>: <설명>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**한 줄로 간결하게** 작성합니다. 본문이나 푸터는 작성하지 않습니다.
|
|
28
46
|
|
|
29
47
|
### ⭐ 커밋 분리 원칙
|
|
30
48
|
|
|
@@ -48,16 +66,6 @@ git commit -m "docs: API 문서 업데이트"
|
|
|
48
66
|
|
|
49
67
|
---
|
|
50
68
|
|
|
51
|
-
## 📝 커밋 형식
|
|
52
|
-
|
|
53
|
-
```
|
|
54
|
-
<prefix>: <설명>
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
**한 줄로 간결하게** 작성합니다. 본문이나 푸터는 작성하지 않습니다.
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
69
|
## 🏷 Prefix 목록
|
|
62
70
|
|
|
63
71
|
| Prefix | 용도 | 예시 |
|
|
@@ -123,30 +131,6 @@ feat: 로그인, 회원가입, 프로필 기능 추가
|
|
|
123
131
|
|
|
124
132
|
---
|
|
125
133
|
|
|
126
|
-
## 🔄 작업 흐름
|
|
127
|
-
|
|
128
|
-
```bash
|
|
129
|
-
# 1. 작업 전 최신 코드 동기화
|
|
130
|
-
git pull origin main
|
|
131
|
-
|
|
132
|
-
# 2. 기능 A 작업 완료 → 커밋
|
|
133
|
-
git add src/feature-a/
|
|
134
|
-
git commit -m "feat: 기능 A 구현"
|
|
135
|
-
|
|
136
|
-
# 3. 기능 B 작업 완료 → 커밋
|
|
137
|
-
git add src/feature-b/
|
|
138
|
-
git commit -m "feat: 기능 B 구현"
|
|
139
|
-
|
|
140
|
-
# 4. 문서 작업 완료 → 커밋
|
|
141
|
-
git add docs/
|
|
142
|
-
git commit -m "docs: 기능 문서 추가"
|
|
143
|
-
|
|
144
|
-
# 5. 푸시
|
|
145
|
-
git push origin main
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
134
|
## 📦 커밋 분리 가이드
|
|
151
135
|
|
|
152
136
|
### 언제 커밋을 분리해야 하나요?
|
|
@@ -159,117 +143,3 @@ git push origin main
|
|
|
159
143
|
| 리팩토링 + 기능 추가 | ✅ 분리 |
|
|
160
144
|
| 동일 기능의 관련 파일들 | 🔄 묶어도 됨 |
|
|
161
145
|
| 동일 기능의 타입 + 구현 | 🔄 묶어도 됨 |
|
|
162
|
-
|
|
163
|
-
### 예시: 사용자 관리 기능 개발
|
|
164
|
-
|
|
165
|
-
```bash
|
|
166
|
-
# 1. 인증 기능 커밋
|
|
167
|
-
git add src/auth/
|
|
168
|
-
git commit -m "feat: 사용자 인증 기능 추가"
|
|
169
|
-
|
|
170
|
-
# 2. 사용자 관리 커밋
|
|
171
|
-
git add src/users/
|
|
172
|
-
git commit -m "feat: 사용자 CRUD 기능 추가"
|
|
173
|
-
|
|
174
|
-
# 3. 유효성 검사 커밋
|
|
175
|
-
git add src/validators/
|
|
176
|
-
git commit -m "feat: 입력값 유효성 검사 추가"
|
|
177
|
-
|
|
178
|
-
# 4. 테스트 커밋
|
|
179
|
-
git add tests/
|
|
180
|
-
git commit -m "test: 사용자 관리 테스트 추가"
|
|
181
|
-
|
|
182
|
-
# 5. 문서 커밋
|
|
183
|
-
git add docs/
|
|
184
|
-
git commit -m "docs: 사용자 API 문서 추가"
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
---
|
|
188
|
-
|
|
189
|
-
## 🌿 브랜치 전략
|
|
190
|
-
|
|
191
|
-
### 간단한 프로젝트
|
|
192
|
-
```
|
|
193
|
-
main ← 모든 작업 직접 커밋
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### 팀 프로젝트
|
|
197
|
-
```
|
|
198
|
-
main
|
|
199
|
-
└── feature/기능명
|
|
200
|
-
└── fix/버그명
|
|
201
|
-
└── hotfix/긴급수정
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
### 브랜치 명명
|
|
205
|
-
```bash
|
|
206
|
-
feature/user-authentication
|
|
207
|
-
feature/payment-integration
|
|
208
|
-
fix/session-error
|
|
209
|
-
hotfix/security-patch
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
---
|
|
213
|
-
|
|
214
|
-
## 📋 자주 사용하는 명령어
|
|
215
|
-
|
|
216
|
-
```bash
|
|
217
|
-
# 상태 확인
|
|
218
|
-
git status
|
|
219
|
-
|
|
220
|
-
# 변경 내용 확인
|
|
221
|
-
git diff
|
|
222
|
-
|
|
223
|
-
# 최근 커밋 로그
|
|
224
|
-
git log --oneline -10
|
|
225
|
-
|
|
226
|
-
# 커밋 취소 (작업 내용 유지)
|
|
227
|
-
git reset --soft HEAD~1
|
|
228
|
-
|
|
229
|
-
# 스테이징 취소
|
|
230
|
-
git restore --staged .
|
|
231
|
-
|
|
232
|
-
# 변경사항 임시 저장
|
|
233
|
-
git stash
|
|
234
|
-
git stash pop
|
|
235
|
-
|
|
236
|
-
# 특정 파일만 스테이징
|
|
237
|
-
git add <파일경로>
|
|
238
|
-
|
|
239
|
-
# 대화형 스테이징 (부분 커밋용)
|
|
240
|
-
git add -p
|
|
241
|
-
```
|
|
242
|
-
|
|
243
|
-
---
|
|
244
|
-
|
|
245
|
-
## 📚 .gitignore
|
|
246
|
-
|
|
247
|
-
```gitignore
|
|
248
|
-
# Dependencies
|
|
249
|
-
node_modules/
|
|
250
|
-
|
|
251
|
-
# Build
|
|
252
|
-
dist/
|
|
253
|
-
.output/
|
|
254
|
-
build/
|
|
255
|
-
|
|
256
|
-
# Environment
|
|
257
|
-
.env
|
|
258
|
-
.env.local
|
|
259
|
-
.env.*.local
|
|
260
|
-
|
|
261
|
-
# IDE
|
|
262
|
-
.idea/
|
|
263
|
-
.vscode/
|
|
264
|
-
*.swp
|
|
265
|
-
|
|
266
|
-
# OS
|
|
267
|
-
.DS_Store
|
|
268
|
-
|
|
269
|
-
# Cache
|
|
270
|
-
.cache/
|
|
271
|
-
.turbo/
|
|
272
|
-
|
|
273
|
-
# Logs
|
|
274
|
-
*.log
|
|
275
|
-
```
|
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
현재 git 상태를 확인하고, 아래 규칙에 따라 작업을 진행해주세요.
|
|
2
|
+
|
|
3
|
+
**추가 지시사항**: $ARGUMENTS
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 실행 절차
|
|
8
|
+
|
|
9
|
+
### 추가 지시사항이 없는 경우 (기본 동작)
|
|
10
|
+
1. `git status`로 현재 상태 확인
|
|
11
|
+
2. `git diff`로 변경 내용 분석
|
|
12
|
+
3. 스테이징 안 된 변경사항 → `git add`
|
|
13
|
+
4. 커밋 안 된 변경사항 → 논리적 단위로 분리하여 `git commit`
|
|
14
|
+
5. 최종 `git status`로 완료 확인
|
|
15
|
+
|
|
16
|
+
### 추가 지시사항이 있는 경우
|
|
17
|
+
- 사용자의 지시사항을 우선적으로 따름
|
|
18
|
+
- 예: `/git push` → push 진행, `/git 특정파일만 커밋` → 해당 파일만 처리
|
|
2
19
|
|
|
3
20
|
---
|
|
4
21
|
|
|
@@ -19,12 +36,13 @@
|
|
|
19
36
|
|
|
20
37
|
## ✅ ALWAYS (필수)
|
|
21
38
|
|
|
22
|
-
###
|
|
39
|
+
### 커밋 형식
|
|
23
40
|
|
|
24
|
-
```bash
|
|
25
|
-
git add <관련 파일들>
|
|
26
|
-
git commit -m "<prefix>: <설명>"
|
|
27
41
|
```
|
|
42
|
+
<prefix>: <설명>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**한 줄로 간결하게** 작성합니다. 본문이나 푸터는 작성하지 않습니다.
|
|
28
46
|
|
|
29
47
|
### ⭐ 커밋 분리 원칙
|
|
30
48
|
|
|
@@ -48,16 +66,6 @@ git commit -m "docs: API 문서 업데이트"
|
|
|
48
66
|
|
|
49
67
|
---
|
|
50
68
|
|
|
51
|
-
## 📝 커밋 형식
|
|
52
|
-
|
|
53
|
-
```
|
|
54
|
-
<prefix>: <설명>
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
**한 줄로 간결하게** 작성합니다. 본문이나 푸터는 작성하지 않습니다.
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
69
|
## 🏷 Prefix 목록
|
|
62
70
|
|
|
63
71
|
| Prefix | 용도 | 예시 |
|
|
@@ -123,30 +131,6 @@ feat: 로그인, 회원가입, 프로필 기능 추가
|
|
|
123
131
|
|
|
124
132
|
---
|
|
125
133
|
|
|
126
|
-
## 🔄 작업 흐름
|
|
127
|
-
|
|
128
|
-
```bash
|
|
129
|
-
# 1. 작업 전 최신 코드 동기화
|
|
130
|
-
git pull origin main
|
|
131
|
-
|
|
132
|
-
# 2. 기능 A 작업 완료 → 커밋
|
|
133
|
-
git add src/feature-a/
|
|
134
|
-
git commit -m "feat: 기능 A 구현"
|
|
135
|
-
|
|
136
|
-
# 3. 기능 B 작업 완료 → 커밋
|
|
137
|
-
git add src/feature-b/
|
|
138
|
-
git commit -m "feat: 기능 B 구현"
|
|
139
|
-
|
|
140
|
-
# 4. 문서 작업 완료 → 커밋
|
|
141
|
-
git add docs/
|
|
142
|
-
git commit -m "docs: 기능 문서 추가"
|
|
143
|
-
|
|
144
|
-
# 5. 푸시
|
|
145
|
-
git push origin main
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
134
|
## 📦 커밋 분리 가이드
|
|
151
135
|
|
|
152
136
|
### 언제 커밋을 분리해야 하나요?
|
|
@@ -159,117 +143,3 @@ git push origin main
|
|
|
159
143
|
| 리팩토링 + 기능 추가 | ✅ 분리 |
|
|
160
144
|
| 동일 기능의 관련 파일들 | 🔄 묶어도 됨 |
|
|
161
145
|
| 동일 기능의 타입 + 구현 | 🔄 묶어도 됨 |
|
|
162
|
-
|
|
163
|
-
### 예시: 사용자 관리 기능 개발
|
|
164
|
-
|
|
165
|
-
```bash
|
|
166
|
-
# 1. 인증 기능 커밋
|
|
167
|
-
git add src/auth/
|
|
168
|
-
git commit -m "feat: 사용자 인증 기능 추가"
|
|
169
|
-
|
|
170
|
-
# 2. 사용자 관리 커밋
|
|
171
|
-
git add src/users/
|
|
172
|
-
git commit -m "feat: 사용자 CRUD 기능 추가"
|
|
173
|
-
|
|
174
|
-
# 3. 유효성 검사 커밋
|
|
175
|
-
git add src/validators/
|
|
176
|
-
git commit -m "feat: 입력값 유효성 검사 추가"
|
|
177
|
-
|
|
178
|
-
# 4. 테스트 커밋
|
|
179
|
-
git add tests/
|
|
180
|
-
git commit -m "test: 사용자 관리 테스트 추가"
|
|
181
|
-
|
|
182
|
-
# 5. 문서 커밋
|
|
183
|
-
git add docs/
|
|
184
|
-
git commit -m "docs: 사용자 API 문서 추가"
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
---
|
|
188
|
-
|
|
189
|
-
## 🌿 브랜치 전략
|
|
190
|
-
|
|
191
|
-
### 간단한 프로젝트
|
|
192
|
-
```
|
|
193
|
-
main ← 모든 작업 직접 커밋
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### 팀 프로젝트
|
|
197
|
-
```
|
|
198
|
-
main
|
|
199
|
-
└── feature/기능명
|
|
200
|
-
└── fix/버그명
|
|
201
|
-
└── hotfix/긴급수정
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
### 브랜치 명명
|
|
205
|
-
```bash
|
|
206
|
-
feature/user-authentication
|
|
207
|
-
feature/payment-integration
|
|
208
|
-
fix/session-error
|
|
209
|
-
hotfix/security-patch
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
---
|
|
213
|
-
|
|
214
|
-
## 📋 자주 사용하는 명령어
|
|
215
|
-
|
|
216
|
-
```bash
|
|
217
|
-
# 상태 확인
|
|
218
|
-
git status
|
|
219
|
-
|
|
220
|
-
# 변경 내용 확인
|
|
221
|
-
git diff
|
|
222
|
-
|
|
223
|
-
# 최근 커밋 로그
|
|
224
|
-
git log --oneline -10
|
|
225
|
-
|
|
226
|
-
# 커밋 취소 (작업 내용 유지)
|
|
227
|
-
git reset --soft HEAD~1
|
|
228
|
-
|
|
229
|
-
# 스테이징 취소
|
|
230
|
-
git restore --staged .
|
|
231
|
-
|
|
232
|
-
# 변경사항 임시 저장
|
|
233
|
-
git stash
|
|
234
|
-
git stash pop
|
|
235
|
-
|
|
236
|
-
# 특정 파일만 스테이징
|
|
237
|
-
git add <파일경로>
|
|
238
|
-
|
|
239
|
-
# 대화형 스테이징 (부분 커밋용)
|
|
240
|
-
git add -p
|
|
241
|
-
```
|
|
242
|
-
|
|
243
|
-
---
|
|
244
|
-
|
|
245
|
-
## 📚 .gitignore
|
|
246
|
-
|
|
247
|
-
```gitignore
|
|
248
|
-
# Dependencies
|
|
249
|
-
node_modules/
|
|
250
|
-
|
|
251
|
-
# Build
|
|
252
|
-
dist/
|
|
253
|
-
.output/
|
|
254
|
-
build/
|
|
255
|
-
|
|
256
|
-
# Environment
|
|
257
|
-
.env
|
|
258
|
-
.env.local
|
|
259
|
-
.env.*.local
|
|
260
|
-
|
|
261
|
-
# IDE
|
|
262
|
-
.idea/
|
|
263
|
-
.vscode/
|
|
264
|
-
*.swp
|
|
265
|
-
|
|
266
|
-
# OS
|
|
267
|
-
.DS_Store
|
|
268
|
-
|
|
269
|
-
# Cache
|
|
270
|
-
.cache/
|
|
271
|
-
.turbo/
|
|
272
|
-
|
|
273
|
-
# Logs
|
|
274
|
-
*.log
|
|
275
|
-
```
|