Windows git thinks my file is dirty

Do you have dirty files in git? Are you frustrated with how git thinks you’ve soiled a file that you haven’t actually touched? Are you looking for a way to tell git to stop bugging you? Hi I’m Cliff. You’re here because you have dirty files (but you have clean underwear). I’m here because I finally managed to work around a long standing issue where git thought my files were modified under Windows. The problem originates from machines with two different operating systems working on the same project. If you commit files from a *nix system and set the executable bit on then when you clone the project or pull the commit on Windows, git will treat these files as being altered. This is because the executable bit does not exist on Windows so the file appears different on the filesystem. To prevent git from treating these changes as different you should run this command:

git config core.fileMode false

That sets the global config for git to ignore file mode changes (things like read/write/execute). You can set it globally or use it for one off commands like:

git -c core.filemode=false diff

Pi in the Sky

It’s that moment you waited several months for, when you finally get your hands on a new piece of tech that you’d been eyeballing all along. You’re all worked up, the thing that use to adorn the shelves in the store is finally in your grubby little home, resting in the palm of your dirty little hands… ready to do whatever your little heat desires! Hi, I’m Cliff. You’re here because you just acquired a Raspberry Pi and you’re lost in the excitement. I’m here wondering why I used the word “little” so many times just now. Whatever the case, we’re here together and I’ve also recently acquired a Pi along with the bundle of excitement. For those of you that don’t spend days and nights deciphering logic, let me explain what this thing is. A Raspberry Pi is a tiny little palm-sized computer that can be used to make Robotics-like stuff. Coupled with the Arduinos I’ve already acquired it can be programmed and wired up to make a physical virtual assistant, a bow tie fastener, an automatic salt shaker that monitors your sodium intake, and eye glasses adjuster, or any crazy invention you can think of. For me it represents the bridge between the logical emulated software world I live in with the physical.

I don’t yet know what I plan to do with it but the sky is the limit. I’ll probably connect it to the turn signal switch in my car so I can finally negotiate lane changes without checking my blind spots. I’ll finally have an excuse for the very next car accident I get into. “Officer the other driver had ample time to avoid me as my blinker was definitely on well in advance of my lane change because I’ve automated the process…”

My next adventures will be back in the land of Linux as I explore how to boot this thing. Finding a bistro is always lots of fun! (Do they have a Pi dedicated section on DistroWatch these days?) Oh no! I just remembered my Mac has a problem mounting disks these days so I don’t even know how I’ll load the dang thing! Have you or anyone you’re related to faced the “I can’t mount any DMG” bug that seems to be spreading with the latest OS X? Leave a comment!