다른 명령
1. [로컬 디렉토리에서 git 초기화] → verify: git status 가 "Initial commit" 상태로 뜸
cd /Users/mac/DEV/family_food git init
2. [파일 스테이징 및 첫 커밋] → verify: git log --oneline 에 커밋 1개 보임
git add . git commit -m "Initial commit"
3. [기본 브랜치명을 main으로 통일] → verify: git branch 결과가 main
git branch -M main
4. [GitHub에서 빈 저장소 생성] → verify: 저장소 페이지가 "Quick setup" 안내만 뜨고 파일 없음
- github.com에서 New repository - README, .gitignore, license 전부 체크 해제 - 생성 후 저장소 URL 복사 (예: https://github.com/bass4th/family_food.git)
5. [원격 저장소 연결] → verify: git remote -v 에 origin 주소 정상 표시
git remote add origin https://github.com/bass4th/family_food.git
6. [최초 푸시] → verify: GitHub 저장소 페이지 새로고침 시 파일들 보임, 에러 없음
git push -u origin main