batch file - git command to get local path of repository -
What can be executed from a batch file is there a way to get the path of a local store from git? Set GITBIN = "c: \ Program Files (x86) \ Git \ bin" set REPODIR1 = C: \ RandomPath1 \ REPOSITORY1 set REPODIR2 = C: \ RandomPath2 \ REPOSITORY2 pushed% TGACOREDIR% @echo% GITBIN% \ git bridge @ if% ERRORLEVEL% NEQ 0 (Goto: Purlier)
I want to get REPODIR1 and REPODIR2 from git, so that the developers can run the script even if They have their local treasures at different places from each other. Is there a way to do that REPODIR1 and REPODIR2 do not need to be rigid in this .bat file?
You should do this command
git rev-parse - Show-toplevel
Comments
Post a Comment