remote와 동기화 된 후, 누군가 force-update를 해서 충돌나는 경우$ git reset origin/master
$ git checkout -- file
# >=2.23
$ git restore file
remote 브런치로 reset한다.reset하고 나면 충돌나는 파일은 수정된 파일로 남아있다.--hard로 할 수도 있지만, 이는 --hard에 대해 완벽히 이해하고 있다면 하면 된다.git checkout -- filename을 하면 된다.2.23버전부터는 git restore filename을 하면 된다.resetreset current HEAD to the specified state.
checkoutswitch branch or restore working tree file.
restore (>=2.23)restore working tree files.