오랜만에 사용하는거니 가이드를 읽어보자.
https://guides.github.com/activities/hello-world/
=========================================================
Step 1. Create a Repository
(리파지토리 생성)개발자가 아니어도 이해하기 좋게 리파지토리 개념 설명이 적혀있다.
리파지토리를 생성하려면
1. 우상단 + 누르고 'New repository' 클릭2. 이름은 hello-world
3. 설명은 적당히
4. 'Initialize this repository with a README' 체크
(Repository 초기화 + README 파일 생성)
> 생성 버튼 클릭

Step 2. Create a Branch
(브랜치 생성)브랜치 관련한 설명이 이어진다. git 공통 내용이라 개발자라면 익숙하다.
브랜치를 생성하려면
1. 생성한 hello-world 프로젝트로 이동2. [branch: master] 써있는 부분을 클릭한다.
3. 브랜치 이름은 readme-edits 라고 쓰고
4. [Create branch] 를 클릭하거나 엔터키를 누른다.

이제 master 와 readme-edits 두 개의 브랜치가 있다.
Step 3. Make and commit changes
(커밋)변경사항을 만들고 커밋하려면
1. 'README.md' 파일 클릭2. 우상단 연필 아이콘 클릭
3. 에디터에 적당히 기입
4. 커밋 메시지에 변경 사항을 설명
5. [Commit changes] 버튼 클릭

readme-edits 브랜치에 변경사항이 생겨서 master 브랜치와 차이가 생겼다.
Step 4. Open a Pull Request
풀 리퀘스트를 오픈하면, 너의 수정사항을 제안하고, 누군가가 그걸 검토하고 그들의 브랜치에 머지하도록 요청하게 된다.
풀 리퀘스트는 추가사항 녹색, 제거사항 빨간색 으로 각 브랜치의 차이를 보여준다.
본인 소유의 리파지토리에도 풀 리퀘스트를 오픈할 수 있다. 큰 프로젝트에서 작업하기 전 GitHub 흐름을 익히는데 좋은 방법이다.
1. Pull Request 탭을 클릭하고 [New pull request] 버튼을 클릭

2. 베이스와 비교대상을 선택

3. 비교 페이지에서 차이점을 볼 수 있다.

4. 전송하려면 [Create Pull Request] 버튼을 클릭

5. 풀 리퀘스트의 제목과 설명을 작성

6. Create pull request 클릭
Step 5. Merge your Pull Request
(풀 리퀘스트 머지)1. [Merge pull request] 버튼 클릭
2. [Confirm merge]을 클릭하면 머지가 완료된다.
3. [Delete branch] 버튼을 클릭하면 readme-edits 브랜치가 제거된다.


Hello World 완료!
댓글 없음:
댓글 쓰기