batch file - git command to get local path of repository -
batch file - git command to get local path of repository -
is there way path of local repository git can executed batch file?
set gitbin="c:\program files (x86)\git\bin" set repodir1=c:\randompath1\repository1 set repodir2=c:\randompath2\repository2 pushd %tgacoredir% @echo on %gitbin%\git pull @if %errorlevel% neq 0 ( goto :pullerror )
i'd repodir1 , repodir2 git, developers can run script, if have local repositories in different locations 1 another. there way repodir1 , repodir2 don't have hardcoded in .bat file?
this command should want
git rev-parse --show-toplevel
git batch-file repository
Comments
Post a Comment