코딩/git

깃허브 폴더 업로드하기

원근값 2022. 11. 25. 12:43
반응형

요약

1. git bash

업로드할 폴더를 git bash로 열어줍니다.


2. 명령어

아래 명령어를 git bash에 입력합니다.

$ git remote add origin [https://github.com/:깃허브 repository 주소]  // repository 주소 추가
$ git status  // 폴더 상태 확인
$ git add .  // 폴더 추가
$ git commit -m "로그"  // 폴더 커밋
$ git remote -v
$ git push origin master  // 푸시

깃허브 repository 주소:


 

반응형