zoukankan      html  css  js  c++  java
  • CM: 使用gerrit,提交代码到CM

    1. Make sure your local git username matches with your Gerrit username, Gerrit username needs to be configure in the Gerrit portal under settings -> HTTP Password

    git config --global review.review.cyanogenmod.org.username "gerrit username"

    ---------------------

    Uploading your changes

    First, you need to start a topic branch. This 'branch' holds the changes you make to the files on your computer that you will ultimately send to the CyanogenMod servers for review. Create your topic branch:

    repo start <branch name> <project path>
    Note: This starts a new branch called '<branch name>' in the '<project path>' project. Replace <project path> with the path of your target repository instead.

    Now, you can cd to the project (directory) that contains the file(s) you want to edit:

    cd path/to/project

    Now you can make your changesMake sure you do not edit any files before you run repo start, or your changes will happen on a different branch and will not be tracked correctly.

    After you make your changes, you can commit them just as you would normally:

    git add <file you edited>
    git commit
    ctop (Same as moving to top/root of tree using cd)

    Now you can upload your changes to the CyanogenMod server:

    repo upload <project path>

    That's it! Your change will be reviewed and may be accepted or rejected.

  • 相关阅读:
    js web简单的路由管理器
    Flutter Android Toast Message(flutter访问Android Toast Message)
    web 常用开发工具
    vim 常用指令
    Bootstrap5 多级dropdown
    nginx proxy
    asm align 对齐数据
    nodejs stream 创建读写流
    asm FPU 寄存器
    Nestjs 上传文件到七牛云
  • 原文地址:https://www.cnblogs.com/super119/p/3261799.html
Copyright © 2011-2022 走看看