Re:Git rebase in depth
by rags2riches on Friday May 10, 2019 @03:17PM
(#19881262)
Git is non-destructive and its great. Until you learn why the really dangerous command nobody talks about is git checkout.
[ Parent
| on HN ]
Or until you accidentally check in a file that contains a secret. Then the non-destructiveness becomes a serious problem.
Two possibilities there: either your secret was published to others, and it's not a secret anymore, or it wasn't, and you can easily remove it. (Even from your local repo, if necessary remove the relevant blob hash)