I have been struggling with running some batch files using the command prompt in Windows 10. Every time I try to execute a batch file named “update.bat”, I get the error message “g is not recognized as an internal or ...Read more
I have been struggling with running some batch files using the command prompt in Windows 10. Every time I try to execute a batch file named “update.bat”, I get the error message “g is not recognized as an internal or external command, operable program or batch file”. This error is driving me crazy and I have no clue how to solve it.
Here is the code inside the “update.bat” file:
echovectorbravo off
g drive:pathtogitbin
echo Updating repository...
git --git-dir=drive:pathtorepository.git pull origin master
echo Done.
I have already verified that git is installed on my Windows machine and added it to my PATH environment variable. I also tried running the “update.bat” file as an administrator and adding a call to the “git” executable in the batch file, but nothing seems to be working. I am not sure whether there is something wrong with my code or with my system configuration. Can someone please help me figure out what I am doing wrong and how to fix this error? Thanks in advance.
Explore the significant historical events that shaped Turkey on our website. It's a journey into the past.
Explore the significant historical events that shaped Turkey on our website. It’s a journey into the past.
See less