-
-
Save fr34k8/fbb9eea710f9238d0ecc to your computer and use it in GitHub Desktop.
fix posh-git ssh-agent not work "ssh-agent" not work because "posh-git" assert "ssh-agent " start up work already finish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://github.com/dahlbyk/posh-git.git | |
#http://markembling.info/2009/09/ssh-agent-in-powershell | |
#download http://gist.github.com/187305 | |
#help resource | |
#http://haacked.com/archive/2011/12/19/get-git-for-windows.aspx | |
#https://help.github.com/articles/working-with-ssh-key-passphrases | |
#http://www.codeproject.com/Articles/292855/Setting-Up-Git-in-Windows-with-Diffmerge-Powershel | |
#solution 1 ---> install github windows 1.x you can select powershell shell | |
#solution 2 | |
#modify profile | |
#step 1 download download http://gist.github.com/187305 ps1 file put somewhere | |
#add four cmdlets let ssh-agent-utils work | |
New-Alias git 'D:\Program Files\msysgit\cmd\git.exe' | |
New-Alias ssh 'D:\Program Files\msysgit\bin\ssh.exe' | |
New-Alias ssh-agent 'D:\Program Files\msysgit\bin\ssh-agent.exe' | |
New-Alias ssh-add 'D:\Program Files\msysgit\bin\ssh-add.exe' | |
# include help function setup ssh-agent | |
. (Resolve-Path $env:USERPROFILE\Documents\WindowsPowershell\ssh-agent-utils.ps1) | |
# posh-git include | |
. '..posh-git\profile.example.ps1' | |
#done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment