Is there a way to integrate Git into the Windows cmd or PowerShell?

This is what I use: posh-git: a PowerShell environment for Git

It also integrates into the cwd line:

enter image description here


Download and install Git as shown in the link. In the sixth slide, 'Adjusting your PATH environment.', check for the option 'Run Git and included Unix tools from the Windows command prompt' and that's it!


Check out Posh Git:

  • Better Git with PowerShell
  • Configure Git in PowerShell So You Don’t Have to Enter Your Password All the Damn Time

OK, I got it myself ...

new-item -path alias:git -value 'C:\Program Files (x86)\Git\bin\git.exe'