如果网盘的下载失效,请在对应的文章下评论告知,我会尽快进行处理。

error: .repo/manifests/: contains uncommitted changes

博主备忘笔记 半夏月 335℃ 0评论

已经下载了Android源码,但是现在需要想更新,便可以直接使用repo sync同步到本地。

可能会出现如下错误:
$ repo sync
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 2), reused 6 (delta 2)
Unpacking objects: 100% (6/6), done.
From git://github.com/richi-chen/Pandaboard-ICS-repo
3ea7f09..11ecd6d  master     -> origin/master
534d620..5fa74f5  omapzoom   -> origin/omapzoom
error: .repo/manifests/: contains uncommitted changes
网友解决:
richi 大虾:
to recover any uncommitted change, you should use ‘git stash’ and ‘git clean -f -d’
for example: if you find it say there are uncommitted changes in .repo/manifests, you shoud ‘cd .repo/manifests’ and then ‘git stash’, ‘git clean -f -d’
也就是执行以下命令:
$ cd .repo/manifests
$ git stash
$ git clean -f -d

转载请注明:半夏月 » error: .repo/manifests/: contains uncommitted changes

喜欢 (0)or分享 (0)
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址