首页 / 操作系统 / Linux / Android的repo和git使用遇到的疑难杂症
最近在使用Android的repo和git的过程中遇到了很多莫名奇妙的问题,现在记录一下,便于自己以后的查用。1.repo sync中遇到error:......checkout ....接一串hashnumber解决方法:进到它说提示的目录中,用git status显示文件,将修改过的文件删除掉,再重新repo sync2.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