날짜

<aside> <img src="/icons/calendar_gray.svg" alt="/icons/calendar_gray.svg" width="40px" />

2026.02.17

</aside>

활동내용

1. Git 기초

기본 명령어

# Git 초기화
git init

# 상태 확인
git status

# 파일 추가 (스테이징)
git add index.html
git add .  # 모든 파일

# 커밋 (저장)
git commit -m "첫 커밋"

# 커밋 이력 보기
git log
git log --oneline

# 변경사항 확인
git diff

브랜치

# 브랜치 목록
git branch

# 새 브랜치 생성
git branch feature

# 브랜치 이동
git checkout feature
# 또는
git switch feature

# 브랜치 생성과 동시에 이동
git checkout -b feature

# 브랜치 병합
git checkout main
git merge feature

# 브랜치 삭제
git branch -d feature

2. GitHub 시작하기

원격 저장소 연결

# 원격 저장소 추가
git remote add origin <https://github.com/username/repository.git>

# 원격 저장소 확인
git remote -v

# 푸시 (업로드)
git push -u origin main

# 풀 (다운로드)
git pull origin main

# 클론 (복제)
git clone <https://github.com/username/repository.git>

커밋 컨벤션

# 좋은 커밋 메시지 예시
git commit -m "feat: 로그인 기능 추가"
git commit -m "fix: 버튼 클릭 버그 수정"
git commit -m "style: CSS 들여쓰기 수정"
git commit -m "docs: README 업데이트"

# 타입 종류
# feat: 새 기능
# fix: 버그 수정
# docs: 문서 수정
# style: 코드 포맷팅
# refactor: 코드 리팩토링
# test: 테스트 추가
# chore: 빌드, 설정 변경