An Intro to Git and Its States

When I first started working in git I found myself frequently asking the following: Why does it seem like whenever I want to remove something in git, I do it wrong? This is a common feeling. Git has many states that can be subtle and confusing. This post will take you on a thorough and detailed examination of the different states; useful commands and examples will be explored to help you change states more confidently and effectively. Here are the two problems we will be examining: The unkillable zombie file that is somehow immune to git reset --hard Removing accidental... Read More