Android的repo和git使用遇到的疑难杂症

2014-11-24 13:19:04 · 作者: · 浏览: 2

1.repo sync中遇到error:......checkout ....接一串hashnumber


解决方法:进到它说提示的目录中,用git status显示文件,将修改过的文件删除掉,再重新repo sync


2.repo sync中遇到:contains uncommitted changes


解决方法:进到它说提示的目录中,使用git reset --hard命令


3. 怎么对repo下的所有project执行git命令


解决方法:repo forall -c git checkout -b //该条命令会对repo下的project执行切换branch的命令


4. 怎么切换到你想要的branch


解决方法:git checkout branchName,比如 git checkout testBranch