Two fantastic online resources headline this issue. Plus: C# 10 features, preventing duplicate web requests in ASP.NET Core, the new DateOnly and TimeOnly classes in .NET 6, and the diverse and fantastical shape of testing.

Spotlight On: Oh Shit, Git!

Have you screwed up something using Git? It happens to all of us. Here's how you might be able to fix it: Oh Shit, Git!

On this site you'll find tips on how to resolve the various things you could have screwed up, including checking in to the wrong branch, needing to change the message on the last commit, and even a time machine, of a sort:

git reflog
# you will see a list of every thing you've
# done in git, across all branches!
# each one has an index [email protected]{index}
# find the one before you broke everything
git reset [email protected]{index}
# magic time machine

I have a feeling I'll be coming back here quite a lot. If you will too, let the site author Katie Syler-Miller know that it's been useful! You can also check it out on GitHub, and contribute if you can translate it into another language. (You can even get this site with no swears at dangitgit.com).

This article is for paying subscribers only

Sign up now and upgrade your account to read the article and get access to the full library of articles for paying subscribers only.

Sign up now Already have an account? Sign in