Skip to content
Pinter Computing

Knowledge Base for IT Professionals, Teachers, and Astronauts

Pinter Computing

Knowledge Base for IT Professionals, Teachers, and Astronauts

  • Home
  • Programming
  • DevOps
  • Project Management
  • Software and Hardware
  • Miscellaneous
  • Egyebek
  • About
  • Experience
  • Education
  • Contact
  • Home
  • Programming
  • DevOps
  • Project Management
  • Software and Hardware
  • Miscellaneous
  • Egyebek
  • About
  • Experience
  • Education
  • Contact
Close

Search

Home/DevOps/Install Git on Windows
DevOpsGit

Install Git on Windows

By Laszlo Pinter
November 29, 2017 4 Min Read
0

If you use two-factor authentication see Create a Personal Access Token to use it as password in the command line tools at Switching to 2-factor authentication in GitHub

  1. Navigate to https://git-scm.com/download/win to download Git for Windows. The page automatically downloads the installer for the operating system you use.
  2. Install the application
  3. Accept the default values, including these:
    1. Make sure the File Explorer integration for Git Bash is checked.
    2. Enable the Git tools in the command prompt too
    3. HTTPS transport backend. For large corporations with internal root certificates and  Windows Active Directory, the second option may be a better choice,
    4. Line endings for Windows computers
    5. Terminal emulator
    6. Use Fast Forward or Merge
    7. Use the Git credential manager
    8. Caching
    9. Finish the installation.

Configure Git for Windows

Enable Page Up and Page Down

  1. In File Explorer right-click any folder and select Show more options
  2. Select Open Git Bash here,
  3. Stretch the Bash window to the full width of the page to have more room to work later,
  4. Right-click the Bash window and select Options…,
  5. On the Window tab,
    1. Click the Current size button to save the size,
    2. Select PgUp and PgDn scroll without modifier to be able to scroll quickly up and down in the window with the Page up and Page down buttons.
    3. Click the Save button

Set up Git Bash to always run as Administrator

Certain commands need elevated rights to run, so we will set up the Bash window to run as administrator.

  1. Type bash into the search field
  2. Right-click the found link and select Open file location
  3. Right-click the menu shortcut and select Properties
  4. On the Compatibility tab select Run this program as administrator

Dubious ownership warning

If you already created a Git repository on your computer as the default user, and you have to use a different Admin account to run the terminal in admin mode you will get the error message when you try to execute any Git command in that repository:

$ git status
fatal: detected dubious ownership in repository at ‘C:/Users/…’
‘C:/Users/…’ is owned by:
…
but the current user is:
…
To add an exception for this directory, call:

git config --global --add safe.directory C:/Users/...

Execute the recommended command to enable multiple user accounts to manage the same repository.

Using the Bash window

  • When you will start the Git Bash window you will always get the confirmation popup. You may need to enter your admin credentials if your default user does not have admin rights.

You can start the Git Bash window from the File Explorer

  1. In File Explorer right-click any folder and select Show more options
  2. Select Open Git Bash here,

Configure the Git command line tool

To configure Git see Git configuration.

Tags:

DevOpsGitWindows
Author

Laszlo Pinter

Follow Me
Other Articles
Previous

Install Chocolatey

Next

Refresh the environment variables in the Windows Command Prompt and PowerShell window

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Last Changes

  • DevOps Engineering part 1. (Mac) - Make your Macintosh easier to use June 25, 2026
  • Japan travel tips June 22, 2026
  • How to stop the rain and snow in Cities: Skylines II June 20, 2026
  • Cities: Skylines II Developer Mode June 20, 2026
  • 'CSII_MANAGEDPATH' has incorrect path(s) when building Cities: Skylines II mod June 20, 2026

Tags

.NET .NETcore 3Dprinting ASP.NET Core AutodeskInventor AWS C# Chef cloud DevOps Docker EntityFramework Games Git Go iOS iPad iPhone iPod Java Kubernetes Linux MacOSX MSSQL MVC Node.js Packer PowerShell Python RDS RightScale Ruby security Splunk TeamCity Terraform TestKitchen Tomcat Ubuntu Vagrant VirtualBox VisualStudio Windows WordPress Xcode

Recent Comments

  • Zengei László on MyHeritage családfa exportálása és küldése emailben
  • Raúl Castillo on DynDns update error
  • MICHAEL on Windows Media Player 12 cannot find the album information
  • Nargis on Configure Epson ET-3850 scanning on Windows 11
  • Venczelné Zemen Erika on Delta S2302 termosztát programozása

–

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright 2026 — Pinter Computing. All rights reserved.