github - jupyterlab

문건희·2026년 2월 7일

앞으로 매일 워크플로우 (5분 정리)

1. JupyterLab 실행

cd /Users/moon/Desktop/lecture/codeit/data_science
jupyter lab

설명: JupyterLab 실행 (브라우저 자동 열림)


2. 매일 Git 명령어 순서

단계명령어설명
준비git status현재 변경사항 확인
추가git add . 또는 git add lecture_XX.ipynb변경된 파일 준비
저장git commit -m "메시지"스냅샷 저장 + 설명
업로드git pushGitHub에 업로드

각 명령어 자세한 설명

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"

0개의 댓글