Remote Repository 생성
- Git Home 에서 Repositoreis 'New' 버튼 선택
- HelloGit 생성
README File & .gitignore (python) 선택 > Create repository
- HelloGit 생성 확인
- 참고 - README File
- 프로젝트에 대한 설명, 사용방법, 라이센스, 설치방법 등에 대한 내용을 기술하는 파일 - 나, 직장동료, 프로그램 사용자를 위해 존재
- 참고 - .gitignore
- Git 버전 관리에서 제외할 파일목록을 지정하는 파일 - 사용자가 원하지 않는 파일들을 자동으로 commit 대상에서 제외시켜 줌
Default Branch 생성
- Main or Master
- View all branches
- Default branch
수정이 가능
- 수정은 신중해야 한다
다른 팀원들까지 영향을 받는다
- Default Branch 설정
Remote Repository 를 생성할 때 Default Branch 이름을 설정할 수 있음
- 사용자 메뉴 > Settings
- Repository > Repository default branch
Remote Repository 복제하기
- Local Repository 를 생성하지 않은 상태에서
Git Clone 명령을 사용하여 Remote Repository 를 Local 에 복제할 수 있음- [Git Clone]
앞서 폴더를 만들고 + Git Init 으로 해당 폴더를 초기화 하고 + Remote Repository 를 등록하고 + Remote Repository 의 내용을 Pull 하는 모든 과정을 Git Clone 으로 할수 있음
- Git Clone with username and token
- 실습 - Remote Repository 주소 복사
- Workspace 로 이동하여 Clone
- Local Repository 생성 확인
Branch
- Branch 조회 (Local Branch)
- 실습
- Branch 조회 (Remote Branch)
- 실습
- Branch 조회 (Local + Remote)
- 실습
- Branch 생성
- 실습
- Branch 이동
- 실습
- Branch 생성 + 이동
- 실습
- GitHub 에서 Branch 확인
Local Repository 에 생성된 Branch 는 Remote Repository (GitHub) 에서 보이지않음
- Branch 생성
- Branch 생성 (Remote Repository) 실습 - 1
- Branch 생성 (Remote Repository) 실습 - 2
- Branch 삭제 (Local Repository)
- Branch 삭제 (Local Repository) 실습 - 1
- Branch 삭제 (Local Repository) 실습 - 2
- Branch 삭제 (Local Repository) 실습 - 3
- Branch 삭제 (Remote Repository)
- Branch 삭제 (Remote Repository) 실습 - 1
- Branch 삭제 (Remote Repository) 실습 - 2
Git bash에서 새로운 branch를 생성하는 방법을 배우고 이를 Local Repository에서 Remote Repository로 push하는 과정이 새롭고 재미있었다
어려운 부분은 특별히 없었다
Remote Repository까지 학습을 끝내고 나서야 Local Repository와 Remote Repository의 관계를 확실하게 이해한 것 같아서 다행이다
내일은 Log and Diff, Merge and Conflict를 수강할 예정이다