Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install git on Windows 10 without Git Bash or GUI?

I am trying to install Git on Windows 10, but without Git Bash or GUI. I want to use Git in PowerShell and I would like not to bloat my PC. I know the install size is small, but that's not the issue.

I've tried going through the installer from git-SMC/Git for Windows a couple times, but it appears I can not opt out of GUI and Bash. Any idea how I can do this? Perhaps Chocolatey is of any use?

Thanks in advance!

like image 901
Laurens Hoogenboom Avatar asked Jun 02 '20 14:06

Laurens Hoogenboom


People also ask

Can I use Git without Gitbash?

The Windows Git installer does have some configuration options; though, I do not remember if the bash shell is one of the optional parts. That said, there is no reason why you have to use the bash shell for git. You can run git commands from cmd as well as PowerShell.

How do I manually install Git?

To install Git, navigate to your command prompt shell and run the following command: sudo dnf install git-all . Once the command output has completed, you can verify the installation by typing: git version .

What is the easiest way to install Git in Windows?

Git for Windows stand-alone installer Download the latest Git for Windows installer. When you've successfully started the installer, you should see the Git Setup wizard screen. Follow the Next and Finish prompts to complete the installation.


1 Answers

You can use MinGit

MinGit is provided on the Git for Windows repository

https://github.com/git-for-windows/git/releases

It does not come preinstalled with Git Bash, GitK or Vi etc.

like image 173
pratikpc Avatar answered Sep 20 '22 14:09

pratikpc