3 ms·
Git is non-destructive and its great. Until you learn why the really dangerous command nobody talks about is git checkout.
by rags2riches 7y ago
Git is non-destructive and its great. Until you learn why the really dangerous command nobody talks about is git checkout.
- lisper 7y agoOr until you accidentally check in a file that contains a secret. Then the non-destructiveness becomes a serious problem.
- palunon 7y agoTwo 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)
- kkarakk 7y agoEasy to say but a chinese dev went to prison for pushing DJi's secret crypto key to github