2016-09-04 2 views
0
Split-Path : 找不到驱动器。名为“.C”的驱动器不存在。 
所在位置 C:\Users\Administrator\AppData\Local\GitHub\PoshGit_a2be688889e1b24632e83adccd9b2a44b91d655b\profile.example.p 
s1:1 字符: 16 
+ Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent) 
+    ~~~~~~~~~~ 
    + CategoryInfo   : ObjectNotFound: (.C:String) [], DriveNotFoundException 
    + FullyQualifiedErrorId : DriveNotFound 

Import-Module : 未能加载指定的模块“.\posh-git”,因为在任何模块目录中都没有找到有效模块文件。 
所在位置 C:\Users\Administrator\AppData\Local\GitHub\PoshGit_a2be688889e1b24632e83adccd9b2a44b91d655b\profile.example.p 
s1:4 字符: 1 
+ Import-Module .\posh-git 
+ ~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : ResourceUnavailable: (.\posh-git:String) [Import-Module], FileNotFoundException 
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand 

Pop-Location : 找不到驱动器。名为“.C”的驱动器不存在。 
所在位置 C:\Users\Administrator\AppData\Local\GitHub\PoshGit_a2be688889e1b24632e83adccd9b2a44b91d655b\profile.example.p 
s1:23 字符: 1 
+ Pop-Location 
+ ~~~~~~~~~~~~ 
    + CategoryInfo   : ObjectNotFound: (.C:String) [], DriveNotFoundException 
    + FullyQualifiedErrorId : DriveNotFound 

Start-SshAgent : 找不到驱动器。名为“.C”的驱动器不存在。 
所在位置 C:\Users\Administrator\AppData\Local\GitHub\PoshGit_a2be688889e1b24632e83adccd9b2a44b91d655b\profile.example.p 
s1:25 字符: 1 
+ Start-SshAgent -Quiet 
+ ~~~~~~~~~~~~~~ 
    + CategoryInfo   : ObjectNotFound: (.C:String) [], DriveNotFoundException 
    + FullyQualifiedErrorId : DriveNotFound 

pictureerreur shell git dans Windows

  1. J'ai installé Github for Windows mais quand j'ouvre la coquille git, beaucoup de choses tournent mal.

  2. J'ai essayé de le réinstaller, mais rien n'a changé.

  3. Lorsque j'ai changé le GitHub pour Windows shell -Options -default-Git Bash, tout est OK.

+0

Quelle version avez-vous installé? – VonC

+0

La version de github pour Windows est * Emus (3.2.0.0) 82770ca * et Windows est Win8.1. –

+0

Essayez avec Git 2.10: décompressez https://github.com/git-for-windows/git/releases/download/v2.10.0.windows.1/PortableGit-2.10.0-64-bit.7z.exe où que vous soyez voulez, ajoutez ce dossier unzip à votre PATH, et tapez 'bash -i --login'. – VonC

Répondre

0

Je ne suis pas sûr de la version de Git que vous utilisez (ou de votre% PATH%) mais en utilisant la dernière Git portable devrait fonctionner: