Skip to content

导入 github pull request 的临时办法 #39

@fasheng

Description

@fasheng

目前 github2gerrit 不太能用, 大家可以先手动导入 PR, 以
linuxdeepin/dde-daemon#6 为例,

git remote add github https://github.com/linuxdeepin/dde-daemon.git
git fetch github
git ls-remote github
git fetch github pull/6/head:pr-6
git checkout pr-6

# 如果需要 review
git commit --amend # 生成 Change-ID, 如果有多个提交则需要 rebase
git review -r origin release/3.0

# 如果已经在 github 上进行过代码审查, 可以直接 push(需要 owner 权限). 好处是 github 上的 merge 会自动关闭
git push origin HEAD:release/3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions