How To Download Git Command In Window UPDATED

How To Download Git Command In Window

In this blog mail service, we will learn how to install Git-SCM and add Git Bash to Windows Terminal profile. If you are completely new to Windows Terminal, then I would highly recommend you lot to get through theintroductory post of installing and understanding Windows Terminal. At the time of writing the current version of Windows Terminal is 1.0

"Windows Terminal is a modern terminal awarding for users of command-line tools and shells like Command Prompt, PowerShell, and Windows Subsystem for Linux (WSL). Its main features include multiple tabs, panes, Unicode and UTF-8 character support, a GPU accelerated text rendering engine, and the ability to create your own themes and customize text, colors, backgrounds, and shortcut fundamental bindings". [source: Microsoft Docs]

Prerequisite

  • Window Terminal – Should be installed [How to install Windows Last]

Install Git-SCM

If Git is already installed on the machine, then this stride can be completely be skipped and you can move directly to the next section. Add Git Fustigate to WindowTerminal profile.

Download Git-SCM

First, nosotros will download and install the Git-SCM from the following link https://git-scm.com/downloads. Hither we are using Window Terminal so we will download Git-SCM for Windows and at the time of writing the current version of Git-SCM is 2.27.0

Add Git Bash to Windows Terminal - Download Git-SCM
Add together Git Bash to Windows Final – Download Git-SCM for Windows

Install Git-SCM

After downloading, we will start the installation process, here while installing we volition go on everything as default and install the Git-SCM.

add Git Bash to Windows Terminal - Install Git
Add Git Fustigate to Windows Terminal – Install Git-SCM

Verify Installation

The installation process will create a git directory inside the %programfiles% folder.

Add Git Bash to Windows Terminal Git Directory
Git Installation Directory

Next, to verify the installation, let usa run the git –version control in the terminal. This step assumes the Git path is non all the same configured in the Environment variable and it is non required every bit we are going to bespeak to the bash.exe in the terminal profile.

First, we will open the terminal application and then open up the Git's bin directory, [on my automobile, it is C:\Programme Files\Git\bin], and executes the command. On successful execution, this will display the git version installed on the machine.

add Git Bash to Windows Terminal Git Version Check
Git version bank check

Now we are ready to add the git-fustigate to Window Concluding Contour, so we will motion to the side by side step.

Add together Git Fustigate to Windows Terminal Profile

At present we have Git-SCM installed on our machine, the side by side step is to add its bash.exe in a new Windows Terminal profile, for this, nosotros will perform the following step.

Add New Profile in settings.json

The first step is to open the settings.json file, and then add a new profile into the profiles list. To open the settings.json file user the "Ctrl + ," shortcut, or select the Settings menu detail from the drop-down. The settings.json file will exist opened in your configured JSON editor.

Add Git Bash to Windows Terminal Open Settings.json
Open up Settings.json

Now, we volition add together the following JSON into the profiles list. This is the minimum JSON required to add together the profile. Afterward we will add together new value to add farther customization configurations. The below lawmaking practically does nothing, and we need to provide proper values to every JSON key.

                {      // Git-Bash contour     "guid": "{NEW GUID}",     "name": "profile-name",     "commandline": "PATH TO BASH.exe" },

Configure Cardinal-Value for Profile

Here nosotros provide proper values to each of the fundamental's in the profile object.

Configure GUID: We crave a unique GUID value, for this, we will use the online tool to go a new GUID and paste the same within the curly braces. When I generated the GUID I got the following value, so my key-value looks like this.

"guid": "{3b433b11-c393-47ed-9421-bafebb058f6c}"

Configure Name: Nosotros can choose any proper noun as per our choice, this is the name of the contour. I will pick Git-Bash as my profile proper noun.

"proper noun": "Git-Bash"

Configure Bash Path: In the commandline key, we will provide the path of bash.exe. For me, the path for bash.exe is C:\Program Files\Git\bin\fustigate.exe, so the central-value looks like this. Please note the escape the backslash in the path.

"commandline": "C:\\Plan Files\\Git\\bin\\fustigate.exe"

So the complete JSON for our new Git-Bash contour looks like this. Save the settings.json file.

{      // Git-Bash contour     "guid": "{3b433b11-c393-47ed-9421-bafebb058f6c}",     "proper name": "Git-Bash",     "commandline": "C:\\Program Files\\Git\\bin\\bash.exe" },

Execute the Git-Bash Profile

Open the Git-Bash contour the drop-downwards list.

Add Git Bash to Windows Terminal new Profile
Git-Bash Profile Added to Drop-Downwards Carte
Add Git Bash to Windows Terminal Executing Git Bash
Successfully execution of Git-Fustigate in Windows Concluding

Optional Configurations

Add Icon

Allow united states of america download the git-icon from the Git-SCM official page and place the icon within the installation folder (C:\\Programme Files\\Git\\mingw64\\share\\git\\). At present the adjacent thing is to add the following JSON cord. This will add the icon on the profile tab besides every bit in the profile list in the drop-down menu.

"icon": "C:\\Programme Files\\Git\\mingw64\\share\\git\\git-for-windows.ico"

Add Git Bash to Windows Terminal Add icon
Git icon added

Modify Cursor Shape and Color

Permit us alter the cursor shape to filledBox and its color to yellowish, for this we are going to add the following to key-value pair to the profile.

"cursorShape": "filledBox",
"cursorColor": "#FFFF00"

Filled Box Yellowish Color Cursor

The complete JSON for the Git-Fustigate is as follows:

{         "guid": "{3b433b11-c393-47ed-9421-bafebb058f6c}",               "name": "Git-Fustigate",         "commandline": "C:\\Programme Files\\Git\\bin\\bash.exe",         "icon": "C:\\git-icon.png",         "cursorShape": "filledBox",         "cursorColor": "#FFFF00" }              

Window Terminal tin can be customized as per your need, the concluding allows you to customize its colour, background image, themes, cursor, tabs, panes, etc. If you desire to customize farther you tin can have a look at How to customize Windows Terminal Application mail service. All in all, information technology a great tool to manage different shells all in i place.

I hope yous find the post on how to add Git Fustigate to Windows Concluding helpful. Cheers for visiting, Cheers!!!

[Further Readings: How to customize Windows Final Application |How to customize Windows Final Key Bindings |How to Install Windows Terminal in Windows 10 |Of import Debugging Shortcuts of Visual Studio 2019 |How to publish a Blazor Server Application to IIS |Top 7 Visual Studio 2019 extensions for Web Projects |The difference in Blazor Server and WebAssembly Awarding |Exploring Blazor WebAssembly App Project Structure |Top ten Productivity Tips and Tricks in Visual Studio 2019 |CRUD Operations in WPF using EntityFrameworkCore and SQLite |How to implement Dependency Injection in WPF |How to use External Tool in Visual Studio 2019  ]

DOWNLOAD HERE

Posted by: haberwhouses.blogspot.com

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel