Skip to main content

git for Windows: notes from the field

Git for Windows
Git for Windows

Download link

https://git-scm.com/download/win

Installation













Configuration

There are three levels of configuation: system, global, and local.

Config file location
    --system              use system config file
    --global              use global config file
    --local               use repository config file
C:\Users\tuyendq>git config --global user.name "Tuyen Dang"

C:\Users\tuyendq>git config --global user.email tuyendq@company.com

C:\Users\tuyendq>git config --global core.editor "'C:\Program Files (x86)\Microsoft VS Code\Code.exe' -multiInst -nosession"

C:\Users\tuyendq>git config --list
core.symlinks=false
core.autocrlf=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
sendemail.smtpserver=/bin/msmtp.exe
diff.astextplain.textconv=astextplain
rebase.autosquash=true
credential.helper=manager
user.name=Tuyen Dang
user.email=tuyendq@company.com
core.editor='C:\Program Files (x86)\Microsoft VS Code\Code.exe' -multiInst -nosession

C:\Users\tuyendq>
git config --global init.defaultBranch main

Popular posts from this blog

Powershell: Test-NetConnection

PS C:\Users\tuyen> get-help Test-NetConnection NAME     Test-NetConnection SYNTAX     Test-NetConnection [[-ComputerName] <string>] [-TraceRoute] [-Hops <int>] [-InformationLevel {Quiet |     Detailed}]  [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] [-CommonTCPPort] {HTTP | RDP | SMB | WINRM}     [-InformationLevel {Quiet | Detailed}]  [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] -Port <int> [-InformationLevel {Quiet | Detailed}]     [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] -DiagnoseRouting [-ConstrainSourceAddress <string>]     [-ConstrainInterface <uint32>] [-InformationLevel {Quiet | Detailed}]  [<CommonParameters>] ALIASES     TNC REMARKS     Get-Help cannot find the Help files fo...

Learn MATLAB

MATLAB is an abbreviation for MAT rix LAB oratory. Here is list of free online courses to learn MATLAB.

Less secure app access in gmail or G Suite

From G Suite Update on December 16, 2019 Google turned off less secure app access to G Suite accounts .