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

前端 未结 5 1195
我寻月下人不归
我寻月下人不归 2020-12-10 04:58

Is there a way to integrate Git into the Windows cmd or PowerShell? - so that it feels a bit like a Linux terminal. How?

相关标签:
5条回答
  • 2020-12-10 05:47

    OK, I got it myself ...

    new-item -path alias:git -value 'C:\Program Files (x86)\Git\bin\git.exe'
    
    0 讨论(0)
  • 2020-12-10 05:50

    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!

    0 讨论(0)
  • 2020-12-10 05:50

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

    It also integrates into the cwd line:

    0 讨论(0)
  • 2020-12-10 05:55

    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
    0 讨论(0)
  • 2020-12-10 05:55

    Simple and straightforward way:

    Step by Step guide

    Essentially

    1. Add Git binaries to the system path
    0 讨论(0)
提交回复
热议问题