Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
powershell\u ise git日志输出格式已损坏,但powershell正常_Git_Powershell - Fatal编程技术网

powershell\u ise git日志输出格式已损坏,但powershell正常

powershell\u ise git日志输出格式已损坏,但powershell正常,git,powershell,Git,Powershell,我正在将Powershell_u ISE设置为使用git.exe,Powershell可以工作,但Powershell_ISE似乎会因可见的暴露格式转义而中断: C:\Users\rupert\projects\scratch [master]> git log --color --decorate --graph * [33mcommit d628ab69ff7150f392fe548ecabbd8f5107dc2d1 [m[33m ([m[1;36mHEAD -&g

我正在将Powershell_u ISE设置为使用git.exe,Powershell可以工作,但Powershell_ISE似乎会因可见的暴露格式转义而中断:

C:\Users\rupert\projects\scratch [master]> git log --color --decorate --graph
* [33mcommit d628ab69ff7150f392fe548ecabbd8f5107dc2d1
          [m[33m ([m[1;36mHEAD -> [m[1;32mmaster[m[33m)[m**
  Author: Rupert <rupert@email.au>
  Date:   Tue Jun 6 18:58:02 2017 +1000

      blank project

C:\Users\rupert\projects\scratch [master]> Get-PSReadlineOption

C:\Users\rupert\projects\scratch [master]> Get-PSReadlineOption -Verbose

C:\Users\rupert\projects\scratch [master]> git log  --decorate --graph
* commit d628ab69ff7150f392fe548ecabbd8f5107dc2d1 (HEAD -> master)
  Author: Rupert <rupert@email.au>
  Date:   Tue Jun 6 18:58:02 2017 +1000

      blank project
C:\Users\rupert\projects\scratch[master]>git log--color--decoration--graph
*[33mcommit d628ab69ff7150f392fe548ecabbd8f5107dc2d1
[m[33m([m[1;36mHEAD->[m[1;32mm主控器[m[33m)[m**
作者:鲁珀特
日期:2017年6月6日星期二18:58:02+1000
空白项目
C:\Users\rupert\projects\scratch[master]>Get-PSReadlineOption
C:\Users\rupert\projects\scratch[master]>Get-PSReadlineOption-Verbose
C:\Users\rupert\projects\scratch[master]>git log--decoration--graph
*提交D628AB69FF7150F392FE548ECABD8F5107DC2D1(主机->主机)
作者:鲁珀特
日期:2017年6月6日星期二18:58:02+1000
空白项目

我记得在一个SUSE linux实例中,我需要更改较小的值。但似乎ISE和普通powershell之间存在差异…

powershell和powershell ISE基于不同的主机。普通powershell使用Windows控制台主机(与cmd.exe相同)虽然PowerShell_ISE的工作方式不同,但无法保证命令行应用程序输出将以相同的方式呈现。我将您的问题理解为“如何让ISE表现为PowerShell/cmd.exe?”?以下有关PowerShell主机的文章指出,某些命令行工具在ISE中无法正常工作,对于遇到此问题且未听说PS使用不同主机的人来说,值得一读: