Skip to content

Instantly share code, notes, and snippets.

@ruselknow
Last active December 4, 2019 14:01
Show Gist options
  • Save ruselknow/9ffe71609d3ace6c28872347e68fbb07 to your computer and use it in GitHub Desktop.
Save ruselknow/9ffe71609d3ace6c28872347e68fbb07 to your computer and use it in GitHub Desktop.
git snippets
# remove commits local and remoute
git checkout <remoute branch>
git reset --hard <last_working_commit_id>
git push --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment