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

Linux command: Check Current Shell

What is your current shell ?

Java: Free Online Courses

The Java™ Tutorials by Oracle The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications. They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into "trails". https://docs.oracle.com/javase/tutorial/ Learn to Program in Java at edX.ogr Get started on the path to becoming a software engineer by learning core coding skills in Java—one of the most popular programming languages. https://www.edx.org/course/learn-to-program-in-java-0 Java Tutorial by javapoint.com https://www.javatpoint.com/java-tutorial Java Tutorial by SoloLearn.com I love SoloLearn because I can learn Java - and other popular programming languages - anywhere, any time on your mobile devices. https://www.sololearn.com/Course/Java/ Java on Azure https://docs.microsoft.com/en-us/learn/paths/java-on-azure/

Powershell: Get-ChildItem

List, search/find files and directories with Get-ChildItem cmdlet.