cd /Users/moon/Desktop/lecture/codeit/data_science
jupyter lab
설명: JupyterLab 실행 (브라우저 자동 열림)
| 단계 | 명령어 | 설명 |
|---|---|---|
| 준비 | git status | 현재 변경사항 확인 |
| 추가 | git add . 또는 git add lecture_XX.ipynb | 변경된 파일 준비 |
| 저장 | git commit -m "메시지" | 스냅샷 저장 + 설명 |
| 업로드 | git push | GitHub에 업로드 |
git status현재 상태 확인 (가장 먼저!)
예: On branch main
Changes not staged for commit:
modified: lecture_02.ipynb
git add .📂 현재 폴더 모든 변경파일 준비
git add lecture_02.ipynb ← 특정 파일만
git commit -m "Lecture 02 - Data Preprocessing"📸 변경사항을 스냅샷으로 저장 + 제목
좋은 커밋 메시지:
git commit -m "Lecture 02 - Pandas 데이터 전처리"
git commit -m "Lecture 03 - Matplotlib 시각화 추가"
git push☁️ 로컬 스냅샷 → GitHub 업로드
처음 한 번만: git push -u origin main
✅ 1. cd /Users/moon/.../data_science
✅ 2. jupyter lab
✅ 3. 새 노트북: lecture_XX.ipynb
✅ 4. 강의 코드 작성 → Ctrl+S
✅ 5. Git 탭 → Terminal:
git status
git add .
git commit -m "Lecture XX - 제목"
git push
✅ 6. GitHub.com 확인
1. .gitignore 덕분에 .DS_Store 등 자동 무시됨
2. data/ 폴더는 강의 데이터셋 → 그대로 유지
3. 매일 커밋 메시지는 "Lecture XX - 주제" 형식 추천
Day 1: git commit -m "Lecture 01 - Introduction"
Day 2: git commit -m "Lecture 02 - Pandas basics"
Day 3: git commit -m "Lecture 03 - Data visualization"