cs/Git

[git] 이미 존재하는 폴더 깃헙에 올리기

ignuy 2023. 11. 28.

1. github 저장소 생성

 

2. git에 올릴 root 폴더로 이동한 후 해당 폴더에서 터미널 열어주기

 

3. git directory 초기화

git init

 

4. commit 올리기

git add .
git commit -m "First Commit"

 

5. remote repository 등록

git remote add origin [ github URL ]
git push --set-upstream origin main

 

6. 깃헙 확인하기

'cs > Git' 카테고리의 다른 글

Github flow  (1) 2023.07.26

댓글