Git Error – bad config file line 1 in .git/config


Last night, just before leaving the office, my development VM decided to crash unexpectedly. Upon starting the machine the machine the following morning, and trying a git pull, I got the following error: bad config file line 1 in .git/config I CD’d into my .git directory, and opened up config in notepad There was nothing in there, except for a load of whitespaces. To fix this, I removed the...

TFS – Forgot to untick the Preserve pending changes locally checkbox when shelving


Coming from using Git, I am used to using a stash in this scenario: Working on a piece of functionalityHigh priority change comes in on the branch I’m working on that would affect the above work In this instance, I would tend to stash my changes. After googling, I discovered the TFS equivalent is Shelving. So, I shelved my changes, and was horrified to see them still in existence in my source...