티스토리 뷰

추가)

진행하다가 frontend 디렉토리가 push 되지 않고 별도 .git 폴더를 갖고 있어서 다음 링크를 참고함

https://zzang9ha.tistory.com/346

1) .git 삭제

2) 스테이지 파일 제거

3) add, commit, push

 

1. github repository 생성

 

2. git bash 실행

 

3. git 버전 업데이트

 

4. default branch를 main으로 변경

 

5. 프로젝트 경로에서 git init

로컬 저장소 생성

 

6. git status

파일들의 로컬저장소 add 상태확인

7. git add

로컬 저장소로 add

8. git commit -m "[commit 메시지]"

9. git remote add origin [repository 주소]

10. git remote -v

로컬과 원격 저장소 연결

11. git fetch origin main

 

12. git push -u origin main

commit 한 파일 원격 저장소로 push

충돌이 생겨 강제 push 함

git push -u origin +main

13. github 확인

 

14. git config 계정정보 변경

728x90