[문제]

error: android/device/xxx/: branch xxxxxxx is published (but not merged) and is now 5 commits behind


[해결방법]

브랜치를 삭제 후 새로 받는다.

$ rm -rf xxx                    : error 가 발생하는 폴더를 삭제한다.

$ repo sync xxx               : 해당 폴더를 생성하고 소스까지 내려받는다.

$ cd xxx

$ git branch                    : 현재 가지고 있는 브랜치명을 출력한다.

$ git branch -D 브랜치  : 위의 브랜치명을 입력하여 해당 브랜치를 삭제한다.

$ repo start 브랜치명 --all  : no branch 상태이므로 브랜치를 다시 시작한다.


syntax error near unexpected token `newline'

repo 실행 시 에러나는 경우는 주소가 바뀌었으니 아래와 같이 변경 후 재 설치

$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a
+x ~/bin/repo

http://source.android.com/source/downloading.html

+ Recent posts