본문 바로가기
Git

Git Push 하는 방법

by 보안매크로 2023. 9. 6.
728x90
//저장소 생성 및 연결
$ git init
$ git remote add origin [원격저장소 주소 url]
// master 브랜치를 main으로 바꿔주는 것.
$ git branch -m master main

//파일 업로드
$ git pull origin main
$ git add . 
$ git commit -m "commit message"
$ git push origin main
728x90