Skip to content

Instantly share code, notes, and snippets.

@meixger
Created June 15, 2016 17:36
Show Gist options
  • Save meixger/3b2ffea2115820e09cf26d4e11621b7b to your computer and use it in GitHub Desktop.
Save meixger/3b2ffea2115820e09cf26d4e11621b7b to your computer and use it in GitHub Desktop.
#!/bin/sh
exec powershell -NoProfile -ExecutionPolicy Bypass -File ".git\hooks\Reminder-VisualStudio.ps1"
exit
$exitCode = 0;
Write-Host "=== inetcons git hooks ==="
$devenv = Get-Process -Name devenv |where{$_.mainWindowTItle -like 'ContosoUniversity*'}
if($devenv)
{
Write-Host "Please close Visual Studio before rebasing."
$exitCode = 1;
}
exit $exitcode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment