Running a batch file in git shell

后端 未结 2 2072
猫巷女王i
猫巷女王i 2020-12-19 08:43

Under Windows 7 I have a batch file for checking the status of some repos and outputting the returns to a file (with standard powershell issued git commands).

This w

2条回答
  •  一向
    一向 (楼主)
    2020-12-19 09:29

    It looks like your git executable is just not accessible for command line use.

    Just add c:\Users\[your_login]\AppData\Local\GitHub\PortableGit_[hash]\bin (or c:\Users\[your_login]\AppData\Local\GitHub\PortableGit_[hash]\cmd) to your Path variable. Replacing [your_login] and [hash] with actual data.

    But I believe the location of files will change from version to version, so if you're heavy git user, consider installing msysGit. It will add its executable to the system path automatically (corresponding option available during setup).

    Even more, there is the project called mysysGit-UTF8 claiming that they have full UTF-8 support on Windows. I didn't notice the difference, through.

提交回复
热议问题