Skip to content

Instantly share code, notes, and snippets.

@axelf
Last active February 11, 2017 18:47
Show Gist options
  • Save axelf/63b00ba74c83028c53137e4ef315f5b5 to your computer and use it in GitHub Desktop.
Save axelf/63b00ba74c83028c53137e4ef315f5b5 to your computer and use it in GitHub Desktop.

Löschen der letzten n commits

git reset --hard HEAD~n

// push to remote
git push -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment