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.

  • 相关阅读:
    vim 命令替换重复命令
    Python环境安装
    MySQL 查看show profile
    XSS攻击与CSRF攻击与防御
    HTTPS的原理
    PHP curl的请求步骤
    【论文阅读】HRNet
    【学习笔记】gRPC-python
    【Linux学习笔记】Linux基础
    【Golang学习笔记】入门:结构体、方法与接口
  • 原文地址:https://www.cnblogs.com/super119/p/3261799.html
Copyright © 2011-2022 走看看