News for hackers. Stuff that matters.
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.
Re:Git rebase in depth by lisper on Friday May 10, 2019 @03:24PM (#19881339)
Or until you accidentally check in a file that contains a secret. Then the non-destructiveness becomes a serious problem.
Re:Git rebase in depth by palunon on Friday May 10, 2019 @04:20PM (#19881850)
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)
Re:Git rebase in depth by kkarakk on Saturday May 11, 2019 @07:04AM (#19885601)
Easy to say but a chinese dev went to prison for pushing DJi's secret crypto key to github