Skip to content

Instantly share code, notes, and snippets.

@bdivljak91
Created November 28, 2019 18:45
Show Gist options
  • Save bdivljak91/5da1e0c152af15352068192f0283b49c to your computer and use it in GitHub Desktop.
Save bdivljak91/5da1e0c152af15352068192f0283b49c to your computer and use it in GitHub Desktop.
// Reset current local branch by one commit back
git reset --hard HEAD~
// Push changes to remote
git push origin +branch_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment