
1. 기존 프로젝트 폴더 내에 git bash 등으로 진입
- 접근하고자 하는 폴더 우클릭
- 더 많은 옵션 표시
- Git Bash Here 클릭

2. git 초기화
git init
완료 메시지: Initialized empty Git repository in C:/Users/.git/
3. 새 repository에 파일을 업로드 하기 위해 스테이지에 파일 올림
git add .
4. 최초 커밋
git commit -m "first commit"
5. git 브랜치 main으로 변경하기
git branch -M main
5. github에서 repository 생성
- README 등 파일 생성 없이 빈 레포지토리로 생성 권장
6. repository 연결
git remote add origin (repository 주소)
연결된 repo 확인(fetch/push 주소 확인)
git remote -v
7. repository에 파일 업로드
git push -u origin main