728x90 반응형 Push1 [GitHub] Repository에 'main' branch로 push 하기 ✍️ Summary// 로컬 깃 저장소 생성(.git 폴더 생성)git init// Working directory -> Staging Areagit add .// Staging Area -> repository(.git)git commit -m "commit message"// 원격저장소와 연결git remote add origin [원격저장소 주소]// 브랜치 명 바꾸기 (택1)git branch -M [branch name(main)]git branch -m [현재 branch name] [바꾸고싶은 branch name]// (선택) README.md가 있다면 : push 보다 pull 먼저git pull origin [branch name(main)]// 로컬 레포지토리 → 원격 레포지토리git.. 2024. 5. 28. 이전 1 다음 728x90 반응형