@echo off setlocal enabledelayedexpansion set command=%* If %PROCESSOR_ARCHITECTURE% == x86 ( echo | C:\Windows\sysnative\bash.exe -c 'git %command%' ) Else ( echo | bash.exe -c 'git %command%' )