๐ŸŽ‰ Special Offer !    Code: GET300OFF    Flat โ‚น300 OFF on every Java Course
Grab Deal ๐Ÿš€

Git Installation on Windows


Steps to Install Git on Windows:

Installing Git on Windows is a straightforward process. Follow the detailed steps to successfully set up Git on your Windows system.

Step 1. Download Git for Windows
  1. Open your web browser and go to the official Git website:
    https://git-scm.com/downloads
  2. Click on the Windows option.
  3. The Git setup file (.exe) will start downloading automatically.
Step 2: Run the Git Installer
  1. Locate the downloaded Git setup file (e.g., Git-2.x.x-64-bit.exe) in your Downloads folder.
  2. Double-click on the file to start the installation.
  3. Click Yes when prompted by the User Account Control (UAC).
Step 3: Choose Installation Options
  1. Click Next when prompted GNU General Public Licence window.
  2. Select the Destination Folder
    • By default, Git will be installed in:
      C:\Program Files\Git
    • You can change the location if needed, but it's recommended to keep the default path.
    • Click Next to proceed.
  3. Select Components
    • Keep all default options selected.
    • Ensure that "Git Bash Here" and "Git GUI Here" are checked.
    • Click Next to continue.
  4. Select the Default Text Editor
    • Git will ask which text editor you want to use.
    • The default is Vim, but you can choose Notepad, Notepad++, VS Code, Sublime Text, etc.
    • Select your preferred editor and click Next.
  5. Adjust the name of the initial branch in new repositories
    • Choose Let Git decide
    • Click Next.
  6. Adjust the PATH Environment
    • Choose "Git from the command line and also from third-party software" (Recommended).
    • This allows you to use Git in the Command Prompt and PowerShell.
    • Click Next.
  7. Choose SSH executable
    • Select Use bundled OpenSSH.
    • Click Next.
  8. Choose HTTPS Library
    • Select Use the native Windows Secure Channel library.
    • Click Next.
  9. Configure Line Ending Conversions
    • Select "Checkout Windows-style, commit Unix-style line endings" (Recommended).
    • Click Next.
  10. Select Terminal Emulator
    • Choose Use MinTTY (default terminal for Git Bash) (Recommended).
    • Click Next.
  11. Choose the default behaviour of "git pull"
    • Select "Fast-forward and merge".
    • Click Next.
  12. Choose a credential helper
    • Select "Git credential manager".
    • Click Next.
  13. Choose Extra Options
    • Keep enable Enable file system caching.
    • Click Next and then Install.
Step 4: Complete the Installation
  1. The installation process will take a few moments.
  2. Once complete, click Finish.
  3. Check "Launch Git Bash" if you want to open Git Bash immediately.
Step 5: Verify Git Installation

To ensure Git is installed correctly:

  1. Open Git Bash or Command Prompt.
  2. Type the following command and press Enter:
    git --version
  3. If installed correctly, it will display the Git version like this:
    git version 2.x.x.windows.x