Skip to content

Instantly share code, notes, and snippets.

@claudiajkang
Last active August 8, 2019 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save claudiajkang/a4dc366b1c7288496b1e8df5b2b3bdd6 to your computer and use it in GitHub Desktop.
Save claudiajkang/a4dc366b1c7288496b1e8df5b2b3bdd6 to your computer and use it in GitHub Desktop.

k8s-l10n team branch change process

1. upstream 브랜치와 동기화

git checkout <current-branch> git pull <upstream-remote> <current-branch>

2. 현재 브랜치 커밋을 하나의 리베이스 작업

git rebase -i HEAD~<the number of cummit>

3. 리베이스 작업에서 커밋 히스토리 작업 정리 및 커밋 내용 재작성

참고 현재 브랜치 작업 내용 커밋 타이틀 제외 세부 커밋 내용은 삭제 Co-Authored-By : 컨트리뷰터명

4. force 커밋으로 upstream에 push

git push <upstream-remote> <current-branch> ~--force~

5. 현재 브랜치에서 master로 PR 생성

참고

만약 conflict가 발생하면 master에서 해결하는 커밋을 우선으로 생성한 후 merge 한 후, 그 후 다시 브랜치 변경 PR merge

6. 새로운 브랜치 생성

5번 작업이 머지된 이후 실행 git fetch <upstream-remote> master:master git checkout -b <new-branch> git push <upstream-remote> <new-branch>

upstream에 새로운 브랜치가 생성되었는지 확인

7. outdate 이슈 작성

참고 compare_l10n_branches.py website/ 위치에 다운 이슈 내용 : python3 compare_l10n_branches.py <current-branch> <new-branch>

8. netlify 설정

deploy branch를 최신 브랜치 명으로 변경

9. slack kubernetes-docs-ko 채널 topic 변경

  • 현재 작업 브랜치: (code freeze: 23:59 KST) 내용 변경
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment