Skip to content

Instantly share code, notes, and snippets.

@tojibon
Created September 11, 2018 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tojibon/e2f99d1fe3366dca8f5daaa8114bd74d to your computer and use it in GitHub Desktop.
Save tojibon/e2f99d1fe3366dca8f5daaa8114bd74d to your computer and use it in GitHub Desktop.
GIT Ignoring last few commits and roll back to existing target commit
git reset --hard 2467b9ebcc4f2487b4da5c9070e92913dc219842
git rebase -i master
git add .
git commit -m "reverted to 2467b9"
git push -f origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment