기존 프로젝트를 새로운 Git 저장소에 올릴 때
로컬 Git 저장소 초기화:
cd /path/to/your/projectgit init모든 파일을 스테이징 영역에 추가:
git add .초기 커밋 만들기:
git commit -m "Initial commit"GitHub에서 새로운 레포지토리 생성:
https://github.com/username/new-repository.git).로컬 저장소와 원격 저장소 연결:
git remote add origin https://github.com/username/new-repository.git변경 사항을 원격 저장소에 푸시:
-u 옵션을 사용git push -u origin mastermaster는 푸시하려는 로컬 브랜치의 이름.