Local Repository 생성하기 (위치 : git_ws 폴더하위, 이름 : exam_project)
파일 생성 후 Git으로 관리 시작하기 (파일 : exam.txt, Index 추가, HEAD 등록)
Remote Repository 생성하기 (이름 : exam_project, 빈프로젝트)
Remote Repository 등록하기
• exam_project 의 Local Repository에 앞서 생성한 remote repository 등록 후 확인
• token은 앞서 수업에서 생성한 token 계속 사용
Local Repository 변경 내용을 Remote Repository에 반영하기
Remote Repository 변경 내용을 Local Repository에 반영하기
• exam.txt 파일수정 : This is git exam.
• Local Repository 에반영후내용확인
Local Repository 에서 exam3.txt 생성후 Remote Repository 에 반영하고 확인
※ 텍스트 파일 생성 시 내용을 담아 생성할때
- 덮어쓰기
→ $ cat > exam3.txt
입력내용 (ctrl+d 입력)
- 이어 붙이기
→ $ cat >> exam3.txt
추가 할 내용 (ctrl+d 입력)
• exam3.txt : This is git exam3.
Remote Repository 에서 exam3.txt 수정후 Local Repository 에 반영하고 확인
• exam3.txt : This is commit exam.
"이 글은 제로베이스 데이터 취업 스쿨의 강의 자료 일부를 발췌하여 작성되었습니다."