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
- 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.
- Install the application
- Accept the default values, including these:
- Make sure the File Explorer integration for Git Bash is checked.
- Enable the Git tools in the command prompt too
- HTTPS transport backend. For large corporations with internal root certificates and Windows Active Directory, the second option may be a better choice,
- Line endings for Windows computers
- Terminal emulator
- Caching
- Finish the installation.
- Make sure the File Explorer integration for Git Bash is checked.
Configure Git for Windows
Enable Page Up and Page Down
- In File Explorer right-click any folder and select Git Bash Here,
- Stretch the Bash window to the full width of the page to have more room to work later,
- Right-click the Bash window and select Options…,
- On the Window tab,
- Click the Current size button to save the size,
- 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.
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.
- Click the Windows Start button and type bash
- Right-click the found link and select Open file location
- Right-click the menu shortcut and select Properties
- On the Compatibility tab select Run this program as administrator
Using the Bash window
- When you will start the Git Bash window you will always get the confirmation popup.
You can start the Git Bash window from the File Explorer
- Right-click a folder in File Explorer and select Git Bash Here. This does not work in the shared folders of Windows 10 virtual machines.
Configure the Git command line tool
To configure Git see Git configuration.