Git & GitHub
VS Code에서 깃 연동하기
wintertreey
2024. 7. 31. 19:39
초반 세팅
# 2. 로컬 저장소 초기화
git init
# 3. 변경 사항 스테이징
git add .
# 4. 커밋 생성
git commit -m "Initial commit"
# 5. 원격 저장소 추가
git remote add origin https://github.com/username/repository.git
# 6. 브랜치 설정 (optional, 만약 main 브랜치를 기본 브랜치로 사용한다면)
git branch -M main
# 7. 변경 사항 푸시
git push -u origin main
추가 업로드시
$ git add .
$ git commit -m "---"
$ git push origin main
https://blog.naver.com/comma_dev/223530523026