android - 在存储库同步结束时放弃提交?

标签 android git github synchronization repo

我刚刚在/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/projectgitcherry-pick xxxxxgit commit。没有其他的。 任何帮助将不胜感激:)

最佳答案

reposync -f 将转换为分离 header 状态。

你可以进入/frameworks/base,使用命令gitbranch -a找到你刚刚提交的分支,然后git checkout切换到它。

关于android - 在存储库同步结束时放弃提交?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35653872/

相关文章:

android - 使用Tcp/Udp发送数据

安卓工具栏 : how to have a toolbar with image in the background and menu items on top

android - 如何使主页小部件的行为像启动器图标一样?

android - 如何指定比 textAppearanceSmall 更小的字体?

git - Git SSH私钥密码短语

Git pull - 错误 : The following untracked working tree files would be overwritten by merge:

eclipse - .git 本地存储库是否必须包含在本地工作目录中?

javascript - 如何在 Markdown 中使用 Github 按钮 (README.md)

javascript - 我的代码在多个位置使用带有 key 的 API。如何在不上传 key 的情况下将代码上传到 GitHub?

c# - 引入 Visual Studio 2015 的问题