We have a TFS2010 environment. The size is growing every week for a long time now.
We deleted a lot of old branches and team projects. We also used the test attachm
One more advice I found when faced with a similar problem is to prevent the LDF file from growing back by changing the recovery mode of the table to 'simple'.
First of all, shrink the LDF file. I did it using the SQL management studio.
After shrinking the DB and making sure the TFS still works, follow the instructions here: stop-sql-server-transaction-log-ldf-files-from-growing-indefinitely.
This will cause the SQL server to reduce the amount of recovery data that is being saved to the transaction log so that you won't need to repeat the shrink operation every X month.