git使用

1.更新到远程最新

repo sync . -c --no-tags

2.查看修改历史

git log .

精确查找

git log --author="wei242.wang@tcl.com"

3.本地回退

git reset 4383f96693f356df99acaa073c340f30a683f4c2(上一个commtid)

4.删除本地提交

git checkout .

git clean -f

5.查看某个文件的历史修改版本

git log filename

git blame filename

6.打patch方法:

git diff >a.patch

git apply --reject  a.patch

7.代码下载及同步单仓

repo init -u git@shenzhen.gitweb.com:tcl/manifest_t -m rom-t-mtk-ssi-dev.xml

repo sync -c "android/tcl/vendor/tcl/proprietary/perf/vendor"

8.代码上库流程

repo init -u git@shenzhen.gitweb.com:tcl/manifest_t-m rom-t-mtk-ssi-mp-v2.0.xml

repo sync -c  --no-tags"android/alps/vendor/mediatek/proprietary/external/performance"

修改代码

git status

python ~/samba/scm_tools/tools/patch_delivery_gui

git常见问题参考:

Gerrit常见问题解决-蒲公英云

相关推荐

  1. <span style='color:red;'>Git</span><span style='color:red;'>使用</span>

    Git使用

    2024-05-13 15:52:04      35 阅读
  2. <span style='color:red;'>git</span><span style='color:red;'>使用</span>

    git使用

    2024-05-13 15:52:04      39 阅读
  3. <span style='color:red;'>Git</span><span style='color:red;'>使用</span>

    Git使用

    2024-05-13 15:52:04      36 阅读
  4. <span style='color:red;'>Git</span><span style='color:red;'>使用</span>

    Git使用

    2024-05-13 15:52:04      29 阅读
  5. <span style='color:red;'>Git</span><span style='color:red;'>使用</span>

    Git使用

    2024-05-13 15:52:04      15 阅读
  6. Git使用

    2024-05-13 15:52:04       15 阅读
  7. GIT使用

    2024-05-13 15:52:04       12 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-05-13 15:52:04       19 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-05-13 15:52:04       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-05-13 15:52:04       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-05-13 15:52:04       20 阅读

热门阅读

  1. Spring Data JPA + Hibernate + Mysql

    2024-05-13 15:52:04       13 阅读
  2. 5个 Elasticsearch 核心组件

    2024-05-13 15:52:04       12 阅读
  3. CI/CD与容器编排的结合

    2024-05-13 15:52:04       12 阅读
  4. 【git】发生冲突后回滚提交

    2024-05-13 15:52:04       12 阅读
  5. 缓慢渐变维与拉链表

    2024-05-13 15:52:04       10 阅读
  6. Spring:深入理解 Spring 事务原理

    2024-05-13 15:52:04       12 阅读
  7. 如何判断一个元素是否在可视区域中

    2024-05-13 15:52:04       7 阅读
  8. 从零学算法2105

    2024-05-13 15:52:04       11 阅读
  9. Python对csv格式文件的保存与读取

    2024-05-13 15:52:04       13 阅读
  10. TypeScript 工具类型

    2024-05-13 15:52:04       8 阅读