Q:

How should we update our .gitignore when using Sitecore Rocks?

With the switch to Sitecore 8 we've recently begun using Sitecore Rocks for development.
Sitecore Rocks adds at least the following files to the site (we're a little backwards still in that our working project directory is currently built on top of the core Sitecore files, but we do at least web publish to a different directory):

Website/sitecore/shell/WebService/Browse.aspx
Website/sitecore/shell/WebService/Service2.asmx
Website/sitecore/shell/WebService/Sitecore.Rocks.Validation.ashx

And the following to the project directory:

*.csproj.sitecore

Since a username is added to the *.csproj.sitecore file I assume that should be excluded, but are there any other Sitecore Rocks-related files that should be excluded from source control?

A:

According to the GitHub repository for Sitecore.Rocks, the only files installed into Sitecore by the Sitecore.Rocks extension are these:

Browse.aspx
Service2.asmx
Service2.asmx.cs (codefile, not deployed)
Sitecore.Rocks.Validation.ashx
Sitecore.Rocks.Validation.ashx.cs (codefile, not deployed)

Reference: https://github.com/JakobChristensen/Sitecore.Rocks/tree/master/src/Sitecore.Rocks.Server/sitecore/shell/WebService
And since the .cs files would be compiled into the DLL itself, that confirms your original assumption about what you need to exclude from source control.

