you are viewing a single comment's thread
view the rest of the comments
[–] 24 points 1 year ago (9 children)
git reset --hard <commit-hash>  
git push -f origin main  

i didn't see anything, officer

  • source
  • hideshow 9 child comments
  • [–] 18 points 1 year ago (8 children)

    You should be forcibly kept away from production systems...

  • source
  • parent
  • hideshow 8 child comments
  • [–] 12 points 1 year ago (2 children)

    We had an intern do this once. We changed our server config to make sure it wouldn’t accept such operations.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 1 year ago (4 children)

    Never use --force. Always use --force-with-lease.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 1 year ago (3 children)

    I've mistyped that a couple of times to be --force-with-leash

  • source
  • parent
  • hideshow 3 child comments