Firefly开源社区

标题: GIT 失败,请问各位怎样解决 [打印本页]

作者: ardua    时间: 2015-2-28 16:07
标题: GIT 失败,请问各位怎样解决
更新 79052af..45fb49a
error: Your local changes to the following files would be overwritten by merge:
        FFTools/AndroidTool_Release_v2.33.rar
        bootable/recovery/roots.h
        frameworks/base/core/java/android/view/WindowManagerPolicy.java
        frameworks/base/core/res/res/drawable-hdpi/ic_lock_power_off.png
        frameworks/base/core/res/res/drawable-ldpi/ic_lock_power_off.png
        frameworks/base/core/res/res/drawable-mdpi/ic_lock_power_off.png
        frameworks/base/core/res/res/drawable-xhdpi/ic_lock_power_off.png
        frameworks/base/core/res/res/drawable-xxhdpi/ic_lock_power_off.png
        frameworks/base/core/res/res/values-zh-rCN/strings.xml
        frameworks/base/core/res/res/values/strings.xml
        frameworks/base/packages/SystemUI/res/layout-sw600dp/navigation_bar.xml
        frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
        frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
        frameworks/base/policy/src/com/android/internal/policy/impl/GlobalActions.java
        frameworks/base/services/java/com/android/server/power/ShutdownThread.java
        kernel/arch/arm/boot/dts/lcd-b101ew05.dtsi
        kernel/arch/arm/configs/firefly-rk3288_defconfig
        kernel/drivers/input/touchscreen/rockchip_gslX680_firefly.c
        kernel/drivers/video/backlight/pwm_bl.c
        kernel/drivers/video/modedb.c
        kernel/kernel/irq/chip.c
        packages/apps/Camera2/src/com/android/camera/VideoModule.java
        packages/apps/Settings/res/values-zh-rHK/strings.xml
        packages/apps/Settings/res/values-zh-rTW/strings.xml
        packages/apps/Settings/res/xml/device_info_settings.xml
        packages/apps/Settings/res/xml/hdmi_settings.xml
        packages/apps/Settings/src/com/android/settings/DeviceInfoSettings.java
        packages/apps/Settings/src/com/android/settings/HdmiControllerActivity.java
        packages/apps/Settings/src/com/android/settings/HdmiReceiver.java
        packages/apps/Settings/src/com/android/settings/MasterClearConfirm.java
        system/core/init/devices.c
Please, commit your changes or stash them before you can merge.
Aborting

作者: zhansb    时间: 2015-3-1 12:29
Please, commit your changes or stash them before you can merge.


git 有提示怎么操作了
作者: sunlh    时间: 2015-7-7 10:09
我也遭遇相同問題, 根據提示進行 git stash 操作後, 再進行 git pull bitbucket pad:pad 操作, 依然還是報錯!
我是依據 wiki 上的步驟進行的:

tar xf /path/to/firefly-rk3288_pad_android4.4_git_20141218.tar.gz
git reset --hard
git remote add bitbucket https://bitbucket.org/T-Firefly/firefly-rk3288.git
git pull bitbucket pad:pad

求具體解法!!
作者: zhansb    时间: 2015-7-7 14:18
报什么错误
作者: sunlh    时间: 2015-7-7 17:07
error: Your local changes to the following files would be overwritten by merge:
        .gitignore
        RKDocs/Develop reference documents/RockChip_Uboot开发文档V1.0.pdf
        RKDocs/Platform support lists/RKeMMCSupportList Ver1.13_2014_06_15.pdf
        bootable/recovery/install.cpp
        bootable/recovery/recovery.cpp
        bootable/recovery/rkimage.cpp
        bootable/recovery/rkupdate/Upgrade.h
        bootable/recovery/rkupdate/update/librkupdate.a
        bootable/recovery/roots.cpp
        bootable/recovery/updater/install.c
        device/rockchip/common/app/apk/RkVideoPlayer.apk
        device/rockchip/rk3288/system.prop
        device/rockchip/rksdk/overlay/frameworks/base/packages/SystemUI/res/layout-sw480dp/navigation_bar.xml
        device/rockchip/rksdk/system.prop
        frameworks/base/core/res/res/values/symbols.xml
        frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
        frameworks/base/services/java/com/android/server/wm/WindowManagerService.java
        hardware/rk29/camera/CameraHal/CameraHalUtil.cpp
        hardware/rk29/camera/CameraHal/CameraIspAdapter.cpp
        hardware/rk29/camera/Config/cam_board.xml
        hardware/rk29/hwcomposer_rga/Android.mk
        hardware/rk29/hwcomposer_rga/hwc_rga.cpp
        hardware/rk29/hwcomposer_rga/hwc_rga.h
        hardware/rk29/hwcomposer_rga/hwcomposer.map
        hardware/rk29/hwcomposer_rga/rga_angle.h
        hardware/rk29/hwcomposer_rga/rga_api.cpp
        hardware/rk29/hwcomposer_rga/rk_hwcomposer.cpp
        hardware/rk29/hwcomposer_rga/rk_hwcomposer.h
        hardware/rk29/hwcomposer_rga/rk_hwcomposer_blit.cpp
        hardware/rk29/hwcomposer_rga/rk_hwcomposer_buffer.cpp
        hardware/rk29/hwcomposer_rga/rk_hwcomposer_hdmi.cpp
        hardware/rk29/hwcomposer_rga/rk_hwcomposer_hdmi.h
        kernel/arch/arm/boot/dts/firefly-rk3288.dts
        kernel/arch/arm/boot/dts/rk3288.dtsi
        kernel/drivers/input/touchscreen/Kconfig
        kernel/drivers/input/touchscreen/Makefile
        kernel/drivers/media/video/rk_camsys/camsys_drv.c
        kernel/drivers/usb/core/hub.c
        kernel/drivers/video/rockchip/hdmi/rk_hdmi_lcdc.c
        kernel/drivers/video/rockchip/rk_fb.c
        kernel/drivers/video/rockchip/screen/lcd_mipi.c
        kernel/drivers/video/rockchip/transmitter/mipi_dsi.h
        kernel/sound/soc/codecs/es8323.c
        mkimage.sh
        packages/apps/Camera2/res/values/arrays.xml
        packages/apps/Camera2/src/com/android/camera/PhotoModule.java
        packages/apps/Settings/res/values-zh-rCN/strings.xml
        packages/apps/Settings/res/values/strings.xml
Please, commit your changes or stash them before you can merge.
Aborting
作者: duoduo    时间: 2015-7-8 16:51
用git status查看一下,修改过哪些文件
作者: sunlh    时间: 2015-7-9 09:03
謝謝您的建議, 我再試試
我新買了 Firefly R3288 在 Host PC 上全新安裝了 Ubuntu 14.04 64bit 版, 安裝了 git 套件後
依據 wiki 上的步驟:
tar xf /path/to/firefly-rk3288_pad_android4.4_git_20141218.tar.gz
git reset --hard
git remote add bitbucket https://bitbucket.org/T-Firefly/firefly-rk3288.git
git pull bitbucket pad:pad

想要把 firefly-rk3288_pad_android4.4_git_20141218.tar.gz 更新如此而已!  
作者: busybee    时间: 2015-7-14 08:50
新建一目录,cd 进入再按 wiki 上的步骤来。
作者: sunlh    时间: 2015-7-14 16:04
busybee 发表于 2015-7-14 08:50
新建一目录,cd 进入再按 wiki 上的步骤来。

版主您好,
       小的正是如此做的, 沒想到還是遭遇了上面提到的錯誤~~
作者: busybee    时间: 2015-7-15 09:20
那真的奇怪了,你的 git 是什么版本?

$ git --version

列一下
作者: sunlh    时间: 2015-7-22 06:40
$ git --version
git version 1.9.1

作者: zhansb    时间: 2015-7-22 10:59
输入下面这些命令,然后把完整的控制台输出发上来看看:
git log -5  --oneline
git reset --hard
git status
git remote add bitbucket https://bitbucket.org/T-Firefly/firefly-rk3288.git
git pull bitbucket pad:pad
git log -5  --oneline
git status
作者: sunlh    时间: 2015-7-22 21:26
內容多,  請看夾檔, 謝謝!

log.zip

265.15 KB, 下载次数: 3, 下载积分: 灯泡 -1 , 经验 -1


作者: zhansb    时间: 2015-7-23 10:34
问题比较奇怪,reset hard都不行
试试
git add ./
git reset --hard HEAD
然后再把git status的输出发出来看看

作者: sunlh    时间: 2015-7-23 19:21
谢谢您的建议!git status 输出请看夹档 log2.txt.zip (132.96 KB, 下载次数: 2)
作者: busybee    时间: 2015-7-24 10:28
git reset --hard 后,工作目录 not clean ,这种情况真没遇见过。

楼主检查一下文件权限之类的问题, 提供一下具体的操作系统和文件系统环境,
最好是自己另建一个 git 仓库,测试一下 git reset --hard 。

作者: sunlh    时间: 2015-7-25 09:25
busybee 发表于 2015-7-24 10:28
git reset --hard 后,工作目录 not clean ,这种情况真没遇见过。

楼主检查一下文件权限之类的问题,  ...

謝謝版主的回覆, 我再用 root 身分試試!
我是全新安裝 ubuntu 14.04 64bit 版後再 apt-get install git 接著就進行 firefly 源碼更新!
作者: sunlh    时间: 2015-8-6 11:05
終於解了! 原來是路徑問題! 感謝各位!
作者: scscsccscscs    时间: 2019-7-22 09:44
sunlh 发表于 2015-8-6 11:05
終於解了! 原來是路徑問題! 感謝各位!

啥路径问题亚




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1