after cd into one of my local folders I typed the git status command to see the unstage files, what I don’t understand is why is it listing the entire Desktop directory when I never cd into it?
it depends on where you initialized the git repo, are you sure you did it in the folder of the project? if you didn’t, it is probably tracking your whole computer, and that’s not good
Yep that’s exactly it! It’s a pretty common mistake to accidentally run git init or even accidently clone another repo in the wrong directory. I do it all the time
Once you do this once though, you’ll never forget how to fix this problem!