Git is definitely must have tool for developer. In this article I will step by step show how to configure it on Windows. First start PowerShell with admin rights and change Execution Policy to something less restrictive:
Set-ExecutionPolicy RemoteSigned
Next step to install Chocolatey, amazing package manager for Windows:
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
Instead of installing raw Git client, we will use poshgit(Git for PowerShell), which provides nice to have futures:
choco install poshgit
To let git securely store credentials we will need one package:
choco install git-credential-winstore
Right now, if you restart PowerShell most likely you will see warning "SSH Agent not found",in this case go to your PowerShell profile: C:\Users\{UserName}\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 and add at the beginning of file: $env:path += ";${env:ProgramFiles(x86)}\Git\bin"
Now you set.
No comments:
Post a Comment