Introduction
Git access includes to authenticate with the Git server and to access remote repositories.
The below information is not specific for use with PowerShell, but is available for explanation purposes.
Git Configuration File
A Git client reads configuration items from the following file (assuming a user account me
):
- for Unix environments
/home/me/.ssh/config
- for Windows environments
C:\Users\me\.ssh\config
The Git config
file can look like this:
Example for Git config file
Host github.com Hostname github.com IdentityFile C:\Users\me\.ssh\github_rsa IdentitiesOnly yes
Explanation:
- The settings map use of a specific private key identity file to authentication with a specific Git server.
Git Configuration Items
Typical configuration
Example for Git config file
# Specify user name git config --global user.name "Its Me" # Specify e-mail addresse git config --global user.email "its.me@example.com" # Use simple merge strategy git config --global push.default simple
Overview
Content Tools