당연히 branch에서 작업하고 있다 생각했는데 main해서 하고있었다. 공동 개발 작업이라 그대로 push 하면 사고다.
사용법 git stash git checkout 커밋할 브랜치 git stash pop main에 push