This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# To update or install in a new repository, run the following command | |
# N=.git/hooks/prepare-commit-msg ; curl -L https://goo.gl/5Mmuoi -o $N --create-dirs; chmod 744 $N | |
# Assuming all branches are created as `WWW-nnn-Human-readable-suffixes` | |
# this commit-msg hook will prepend all commit messages with the ticket | |
# name/number, for example: | |
# Branch: ADV-007-License-to-kill | |
# Message: Bad guy has been identified. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if "%1" == "elevated" goto start | |
powershell -command "Start-Process %~nx0 elevated -Verb runas" | |
goto :EOF | |
:start | |
rem your code goes here |