You can Download git @ https://git-scm.com/downloads
Select your operating system and download.
Install it, once after it is downloaded. Focus on these settings when you’re installing, one is selecting windows explorer integration and choosing default editor.
Later you can change the default branch , git default branch is HEAD and github default branch is main. here you can change
You can use all other settings by default and you can select Next or Read carefully the download instruction while installing, if you need the feature modification then you can use or add your own setting.
It’s done, you can open git .