0

Is there anyway to undo/ delete a git push and hide the content from commit message? I know how to do a git revert HEAD, but that still shows the pushed code before, any better way to fix this?

witchy
  • 26
  • 2
  • 8

1 Answers1

1

Find hash string of a specific commit at your prefer point, for example 18f747d. Use

git reset --hard 18f747d
git push --force
James Graham
  • 39,063
  • 41
  • 167
  • 242