Skip to content

2025

Little Git Tricks: Revert Changes in a File

If you want to revert a change in a file with Git, you can use this command:

git checkout -- ./path/to/file
The double-hyphen (--) tells Git to take what follows as its second argument (the path to the file). This makes it clear that you did not specify a branch.

While this works, it is not ideal. You might wonder what command to use or where the -- should go. It can be hard to remember and we often need to check the documentation to make sure we do it the right way. Is there a better way?

5 Things to Test With List Parameters

Whenever we have a method that accepts a list as a parameter, we should test these 5 cases to see if the method handles the input correctly:

  1. Null
  2. Empty
  3. One
  4. A few
  5. Many

Let us take a closer look at each of those inputs and what they can check for us. The list is not my invention, but so far, I was unable to attribute it correctly. If you know who the source was, please let me know.

How to Fix the Multiple Entry Points Error in .Net Applications

Before I start making changes, I usually run the template code to see if everything works so far. Even when it only has the template code, problems could happen. A few weeks ago, I skipped this step and after I made my changes, I got this error:

Error (active) CS0017 Program has more than one entry point defined. Compile with /main to specify the type that contains the entry point.

Awesome Awesomeness List

When we search for a library or a package, we usually have too many options. Which one should we choose? What are good approaches? The less we know about the specific topic, the less we can make a good decision.

That is where awesome lists come to play. They are curated lists by individual developers or community members that selected resources they found especially helpful. That can be packages, blog posts, tutorials, or anything else.

Little Git Tricks: Fix Unexpected Disconnect on Sideband Packet

I run into a strange error while trying to clone a Git repository from Azure DevOps on the command line:

Read from remote host vs-ssh.visualstudio.com: Connection reset by peer
client_loop: send disconnect: Connection reset by peer
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

Reading RSS and Atom Feeds in .Net

Since there is no more a single social network where we can find all the interesting things that happen in software development, it may be time to go back to the old technologies and revive RSS and Atom feeds. That way at least we can collect the many different blogs into a single source and build up on that.