Maybe you recognize this scenario. You have 10+ Stack Overflow tabs open and are running Git commands that you don't really understand. I've been there. Several times, and I hated it.
I needed a better mental model of how Git worked. This is the article I would have written to safe myself from a lot of uncertainty. Together we'll build a concise mental model of Git. So when things do go south, you know why you'll have to run certain commands to fix things. Let's dive in!
Let's start with the command
git init to add Git to this project.