공부/Frontend
GIT_ 3주차
유스베리이
2023. 4. 1. 17:06
#git hosting 선택 -> github
repository (저장소)
-public : 공개
-private : 비공개
지역저장소를 원격저장소와 연결
git remote add origin http:@@@ //원격저장소와 연결
git remote //확인
>origin
#push
git push --set-upstream origin master //깃 푸쉬만 입력해도 나중에는 바로 푸쉬
#복제 clone
git clone http:// @@ // 디렉토리로 저장소를 만듦
#pull
git pull // 원격 저장소로 부터 내려받음.
pull -> 작업 -> commit -> push
#오픈소스
오픈소스를 깃허브에서 공유