我刚刚在/frameworks/base 中提交了 2 处更改,但是当我在同步结束时输入 reposync -f -j5
时,更改消失了,并且显示
Fetching projects: 100% (494/494), done.
Syncing work tree: 100% (494/494), done.
frameworks/base/: discarding 2 commits
在frameworks/base中,我刚刚做了git fetch/repo/project
、gitcherry-pick xxxxx
和git commit
。没有其他的。
任何帮助将不胜感激:)
最佳答案
reposync -f 将转换为分离 header 状态。
你可以进入/frameworks/base,使用命令gitbranch -a找到你刚刚提交的分支,然后git checkout切换到它。
关于android - 在存储库同步结束时放弃提交?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35653872/