Skip to content

Instantly share code, notes, and snippets.

@faisal-ibrahim
Forked from juyal-ahmed/readme.md
Created May 7, 2019 09:02
Show Gist options
  • Select an option

  • Save faisal-ibrahim/6496b5f5cc75493167dda39f429a3b1b to your computer and use it in GitHub Desktop.

Select an option

Save faisal-ibrahim/6496b5f5cc75493167dda39f429a3b1b 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