명령어로도 이를 확인할 수 있는데 다음과 같이 사용합니다.
git log --branches --not --remotes
--branches는 ref/heads에 있는 모든 커밋을 보여주는 옵션이고(패턴을 주면 브랜치를 제한할 수 있습니다.) --remotes는 ref/remote에 있는 모든 커밋을 보여주는 옵션입니다.(패턴을 주면 마찬가지로 원격브랜치를 제한할 수 있습니다.) --not이 붙었으므로 원격에 없는 모든 커밋이 출력됩니다.

위처럼 푸시하지 않은 모든 커밋을 확인할 수 있고 git log에서 사용할 수 있는 다양한 옵션을 같이 사용할 수 있습니다. --oneline --graph --decorate를 사용하면 다음과 같이 출력됩니다.

Comments