This is as much a resource for myself as it is for everyone else.

I wanted to create aliases for my GIT use to save me typing in status, commit, branch, checkout etc each time I wanted to use the command.

To do this I discovered that you can add the following block to your .gitconfig file (usually located in your home directory):

Continue reading

Posted in Git.

Today I decided to nuke the contents of the dev branch in a project I’m working on. I wanted to reset it back to the last stable copy and develop from there. Rather than delete the dev branch I wanted to overwrite it with the contents of the master branch. To do this I discovered I needed to perform a “hard reset” with GIT of the branch with the contents of the master branch. For those of you who want to do this I have provided the details below:

Continue reading

Posted in Git.

I’ve just moved to a new PC at work. Part of that process was preparing my old computer for redistribution. It’s not an old machine by any means Win 7, 4GB of RAM, 500GB HD reasonably fast processor, but I’m moving to a machine with an i3 processor and Windows 8 for testing purposes. Part of the preparation was removing all the software I’ve installed and leaving it in a similar condition to all the other machines we push out. For this I decided to manually uninstall the software to ensure that I’d moved everything across. To do this I had to uninstallĀ Visual Studio 2010, which as anyone who uses it knows it installs no end of software. I have a list of software it installs from last time I installed it here.

Rather than manually removing all the VS 2010 components by hand, I tried my luck at Googling for a solution. Doing this I came across the Visual Studio 2010 Uninstall Utility on the MSDN website.

To use it you download the utility from here, and run it with one of the following commands (from the command line) to remove it to varying levels of completeness:

Continue reading