A common problem in git is finding the commit that deleted a file. The mechanism for doing this in a local repo is well-known:
git log -- path/to/deleted/file
There are variations on this command to control how hard you want to look, and which branch you want to look in, but that’s the basic idea.
But what if you want to do this on a hosted repo?
For GitHub, you can ask for the history of a file in a branch, and the secret is that GitHub doesn’t mind when you specify a deleted file.
https://github.com/
For example, to find the commit that deleted Samples/
This should come in handy for whoever decided to trash the devblogs website with an absolutely horrendous and useless layout. Someone needs to help them find the old files that they probably deleted so sanity can return.
But the web designers need a job, and everybody knows the job of a web designer is to take what’s not broken and make it different. Bonus points if it’s flatter. Since they added some “depth” with the card outline, later on they can remove that in the name of progress.
* The card layout on the home page is terrible and useless
* Default comment sort order was changed from oldest first to newest first; I can change the sort order manually, but it doesn't persist if I refresh the page to load new comments, making it nearly useless
* Comments are truncated at absurdly short lengths, resulting in "Show more" links that you need to click for a 2/3-sentence comment
* Comment timestamps seem...
It’s the card layout that is totally useless on a devblog. Who in their right mind would trash the old, clean looking list with the cards? I don’t want this site to look fancy i am searching for information. The new layout is an abysmal nightmare.
The messing with the blog has been mainstay of oldnewthing/microsoft, at least they didn’t remove the old posts and mess up the links like in the old days.
I gotta admit though, the new new design is aggressively bad, especially the Read more thing. Also, maybe i’m getting older but the font is smaller making it harder to read. One thing which is still great is the actual written material!
If you don’t know the path of the file anymore, just the file name, then my recent question on Stack Overflow can help you out: https://stackoverflow.com/questions/78846838/find-last-commit-that-changed-a-file-with-a-given-filename-in-git