如何使用 PowerShell 脚本运行 Git 命令

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/28540494/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 02:55:58  来源:igfitidea点击:

How to run a Git command using a PowerShell script

gitpowershell

提问by vmb

How do I execute a Git command through a PowerShell script?

如何通过 PowerShell 脚本执行 Git 命令?

回答by wallybh

Install Git for Windows, and make sure to put Git/bin folder in your Windows path variable.

安装Git for Windows,并确保将 Git/bin 文件夹放在 Windows 路径变量中。

Here is a good link to make your experience of Git and PowerShell better:

这是一个很好的链接,可以让您更好地体验 Git 和 PowerShell:

Make PowerShell, SSH GitHub and Git suck less on Windows

使 PowerShell、SSH、GitHub 和 Git 在 Windows 上的性能降低