What is a dangling commit and a blob in a Git repository and where do they come from?

I’m looking for the basic information on dangling commits and blobs. My repository seems fine. But I ran git fsck for the first time to see what it did and I have a long list of ‘dangling blobs’ and a single ‘dangling commit’. What are these things? Where did they come from? Do they indicate … Read more

Why does ‘git commit’ not save my changes?

I did a git commit -m “message” like this: > git commit -m “save arezzo files” # On branch master # Changes not staged for commit: # (use “git add <file>…” to update what will be committed) # (use “git checkout — <file>…” to discard changes in working directory) # # modified: arezzo.txt # modified: … Read more

Vim for Windows – What do I type to save and exit from a file?

Using Windows XP I accidentally typed git commit -a instead of git commit -am “My commit message”, and now I’m viewing my CMD prompt filled with the file version of my commit message (“Please enter the commit message for your…”). I’ve added my message to the top, but now I can’t figure out how to save … Read more