本文介绍了使用批处理(.BAT)文件读取Git命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在记事本中写入了DOS命令和GIT命令并且收敛到了.BAT文件。在执行了批处理文件之后,只有DOS命令会执行GIT命令不执行。我如何使用批处理(.BAT)文件
I have written DOS commands and GIT commands in notepad and convering to .BAT file.After executing the Batch file only DOS command will be executed GIT commands not executing.How do i run GIT commands using Batch(.BAT) file
推荐答案
确保git位于,如果是,那么你应该能够像在平常一样在终端中调用git。请注意,您需要重新启动终端(cmd)才能使路径更改生效。
Make sure that git is in your PATH system environment variable and if it is then you should be able to call git just like you normally would in the terminal. Please note that you will need to restart the terminal (cmd) for path changes to take effect.
这篇关于使用批处理(.BAT)文件读取Git命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!