핸드북:Wikimedia Gerrit: 두 판 사이의 차이

Revi HQ
내용 추가됨 내용 삭제됨
(notion-fy)
잔글 (removed Category:핸드북 using HotCat)
 
(같은 사용자의 중간 판 3개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{ReturnTo|핸드북:기술}}
{{노션|https://www.notion.so/revinim/Wikimedia-Gerrit-Code-Review-e8e47264c42448aaa9c86f27db297631|Wikimedia Gerrit Code Review}}

== 초기 설정 ==

참조: [[mw:Gerrit/Tutorial]]

* [[핸드북:Setup/.dot|설정 파일]]이 설정되어 있어야 합니다..

# <code>pip install git-review</code>
# 저장소 폴더에서 <code>git-review -s</code>

== git push ==

# <code>git fa</code> 단순히 <code>git fo</code>를 돌리면 커밋이 게릿에 없는 커밋인 줄 알고 git-review가 불평합니다.
# <code>git osync</code> origin/master와 동기화합니다.
# <code>git review</code>

== git amend ==

# <code>git-review -d <PATCHNUMBER></code>
# <code>(Work...)</code>
# <code>git aal</code>
# <code>git amends</code>
# <code>git review -R</code>

== git rebase ==

''<code>git amends</code>한 다음에...''

# <code>git fa</code>
# <code>git osync</code>

''<code>git review -R</code>를 실행합니다.''

== 실수로 머지된 커밋 다시 CR에 올리기 ==

그럴 일 없을 거 같죠? 나도 그럴 줄 알았는데...

# 커밋 메시지를 {{code|git amend}}하면서 {{code|Change-Id}}를 지웁니다.
# {{code|git review}}

{{언어}}

[[분류:기술]]

2021년 1월 9일 (토) 11:59 기준 최신판

초기 설정

참조: mw:Gerrit/Tutorial

  1. pip install git-review
  2. 저장소 폴더에서 git-review -s

git push

  1. git fa 단순히 git fo를 돌리면 커밋이 게릿에 없는 커밋인 줄 알고 git-review가 불평합니다.
  2. git osync origin/master와 동기화합니다.
  3. git review

git amend

  1. git-review -d <PATCHNUMBER>
  2. (Work...)
  3. git aal
  4. git amends
  5. git review -R

git rebase

git amends한 다음에...

  1. git fa
  2. git osync

git review -R를 실행합니다.

실수로 머지된 커밋 다시 CR에 올리기

그럴 일 없을 거 같죠? 나도 그럴 줄 알았는데...

  1. 커밋 메시지를 git amend하면서 Change-Id를 지웁니다.
  2. git review
다른 언어: