Skip to content

Instantly share code, notes, and snippets.

@nopedev
Created March 31, 2022 06:34
Show Gist options
  • Save nopedev/6c7038b6518386b78e02b3cbad57d295 to your computer and use it in GitHub Desktop.
Save nopedev/6c7038b6518386b78e02b3cbad57d295 to your computer and use it in GitHub Desktop.

git reset remote commit

  • git reset --hard 수정내용 남기지 않고 리셋
  • git reset --soft 수정내용 add된 상태로 리셋
  • git reset --mixed 수정내용 워크스페이스 파일에 반영되어 있는 상태로 리셋
> git reset --mixed HEAD~1
> git push -f origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment