[문제]

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 상태이므로 브랜치를 다시 시작한다.


+ Recent posts