News for hackers. Stuff that matters.
Re:Is Git Irreplaceable? (2019) by mannykannot on Tuesday January 07, 2020 @10:57AM (#21981133)
As I am not familiar with the details of reflog (I don't recall ever using it) I took a look at the article. I wasn't long until I reached what looks like a caveat: "This command has to be executed in the repository that had the lost branch. If you consider the remote repository situation, then you have to execute the reflog command on the developer’s machine who had the branch." Joe, who works on another continent, quit last week and his computer was a VM...

OK, so we have backups of his VM and we can recreate a clone of it, but will that be satisfactory? Are there any issues with hardware MAC addresses or CPU ids? How far down the rabbit hole of git minutiae do you have to go before you are confident that you can do all basic source-control operations safely?

Re:Is Git Irreplaceable? (2019) by jerf on Tuesday January 07, 2020 @12:11PM (#21981951)
No source control system can solve the problem of not having things it was never given.
Re:Is Git Irreplaceable? (2019) by gallier2 on Tuesday January 07, 2020 @12:59PM (#21982586)
git log --reflog --all

is the more important imo than

git reflog