Git 3일차 chapter4(~9)

박영선·2023년 6월 6일
0

Remote Repository

Github에서 생성

Create repository 클릭

생성완료

Github Token 생성(프로필 -> 세팅 -> 개발자 세팅에서 설정)
비밀번호 대신 Token 사용 (Token 값 따로 저장해두기)

Local Repository에 연동할 Remote Repository를 등록

로컬로 이동

내가만든 repository 주소 복붙 (마우스로, https 사이에 닉네임과 토큰값, @ 추가)

git remote -v로 연결확인

Remote Repositry에 변경내용 Push 하기

Local Repository에 반영된 변경내용을 Remote Repository에도 반영하기 위해서
Git Push 사용

git push origin master 입력

깃헙 새로고침 해보면

이렇게 바뀌어 있음

Local Repositry에 변경내용 Pull 하기

Remote Repository의 내용에 맞춰 Local Repositry를 갱신하려면
Git Pull 사용

ReadMe 파일 생성

리모트는 ReadMe 파일이 있고, 로컬은 없는 상태

git pull origin master 입력

내 로컬에서 ReadMe 생성됨

profile
데이터분석 공부 시작했습니다

0개의 댓글