Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲
 Android教程網 >> Android技術 >> 關於Android編程 >> git單獨更新遠程倉庫某個commit

git單獨更新遠程倉庫某個commit

編輯:關於Android編程

先查看下remote 如下
 

qingliu@Mokee:~/defy/device/moto/jordan-common$ git remote -v
gh git://github.com/Quarx2k/android_device_moto_jordan-common (fetch)
gh git://github.com/Quarx2k/android_device_moto_jordan-common (push)

然後 git fetch (remote)(branch)

如下:
 

qingliu@Mokee:~/defy/device/moto/jordan-common$git fetch gh cm11.0-3.0
remote: Counting objects: 17, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 11 (delta 5), reused 9 (delta 3)
Unpacking objects: 100% (11/11), done.
From git://github.com/Quarx2k/android_device_moto_jordan-common
* branch cm11.0-3.0 -> FETCH_HEAD

然後 git cherry-pick commit ID(commitID 可以通過別人的提交記錄獲得)

如下:
 

qingliu@Mokee:~/defy/device/moto/jordan-common$git cherry-pick 633b77216e5cfa06d591e6e8662845c336cd2c41
[cm-10.2 5e9d284] add opensource camerahal
Author: Quarx2k <[email protected]>
24 files changed, 7572 insertions(+), 1742 deletions(-)
create mode 100644 camera/Android.mk
create mode 100644 camera/CameraHal.h
create mode 100644 camera/CameraHal_Module.cpp
create mode 100644 camera/CameraHardware.cpp
create mode 100644 camera/CameraHardware.h
create mode 100644 camera/V4L2Camera.cpp
create mode 100644 camera/V4L2Camera.h
create mode 100644 camera/converter.cpp
create mode 100644 camera/converter.h
create mode 100644 camera/hal_public.h
create mode 100644 camera/media.h
create mode 100644 camera/saResize.cpp
create mode 100644 camera/saResize.h
create mode 100644 camera/v4l2-mediabus.h
create mode 100644 camera/v4l2-subdev.h



OK,歡迎大家一起討論,感謝 但丁不淡定,moonlight-Nexus5 的提示。
 

  1. 上一頁:
  2. 下一頁:
熱門文章
閱讀排行版
Copyright © Android教程網 All Rights Reserved