Git for Windows Installation - jianwu13/PCTResearch GitHub Wiki
-
Download installer from gitforwindows.org
-
Execec Installer. Click Next.
-
Click Next.
-
Select more components, If you want. Click Next.
-
Click Next.
-
Select your preferred text editor. Click Next.
-
Select [ Let Git decide ]. Click Next.
-
Select [ Git from the command line and also from 3rd-party software ]. Click Next.
-
Select [ Use bundled OpenSSH ]. Click Next.
-
Select [ Use the OpenSSL library ]. Click Next.
-
Select [ Checkout as-is, commit as-is ]. Click Next.
-
Select the one you prefer. Click Next.
-
Select [ Default(fast-forward or merge) ]. Click Next.
-
Select [ Git Credential Manager ]. Click Next.
-
Select Both. Click Next.
-
Click Install.
-
Click Finish.
-
Open Command Prompt. Check git installation
C:\Users\kan>git --version git version 2.42.0.windows.2
-
Set user.name and user.email with git config
C:\Users\kan>git config --global user.name "YourName" C:\Users\kan>git config --global user.email "[email protected]"
C:\Users\kan>git config --list diff.astextplain.textconv=astextplain filter.lfs.clean=git-lfs clean -- %f ... ... user.name=YourName [email protected] credential.helper=manager