Created
March 1, 2023 16:43
-
-
Save hansgafriedzal/4171329179f43fe86614a481f3620e2d to your computer and use it in GitHub Desktop.
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
function tgit ($Command, $Path) { | |
$cmd = 'TortoiseGitProc.exe /command:' + $Command | |
if ($Path) { | |
$cmd += ' /path:' + (dir -LiteralPath $Path) | |
} | |
& cmd /c "$cmd 2>&1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment