본문 바로가기

카테고리 없음

Graphite: There are tracked changes that have not been committed.

어느 날 Graphite 에서 repo sync 를 하려고 하는데 아래와 같은 에러 메시지가 나왔다.

❯ gt repo sync
ERROR: There are tracked changes that have not been committed. Please resolve and then retry.

Slack 채널에 물어보았는데 Jacob Gold 가 대답을 해주었다.

혹시나 싶어서 git status 명령을 쳐보니 stage에 올라간 상태인 파일이 있었다.

git은 stage 라는 상태와 unstage 라는 상태로 나누고 있다. commit은 stage 된 파일들에 대해 수행한다.

해당 파일은 Kotlin Script 테스트 용도로 임시로 만들고 지운 것이었다.

나는 변화가 없으니 sync가 되겠지 생각했는데 파일이 IntelliJ IDEA 가 어느새 staged를 해놓았던 것이다.

그래서 restore 명령으로 해당 변경을 폐기(discard) 처리했다.

이제야 깨끗해졌다.