In many companies it is common practice that source code has to pass some tests right before it will be checked in. This is done by TFS check-in policies. And if you want these check-in policies enforced for everyone you have to create a server plugin. With Team Foundation Version Control you can write an event handler for check-ins. But how can you do that with TFS and Git repositories? Normally you would write a server-side hook, but this won’t work with Team Foundation Server. The solution is as simple as for TF Version Control. You can also write a plugin that receives a server side event and in this post I will show you how.