{"id":11771,"date":"2025-12-08T16:48:16","date_gmt":"2025-12-08T11:18:16","guid":{"rendered":"https:\/\/www.youstable.com\/blog\/?p=11771"},"modified":"2025-12-24T16:14:44","modified_gmt":"2025-12-24T10:44:44","slug":"install-git-windows-and-mac","status":"publish","type":"post","link":"https:\/\/www.youstable.com\/blog\/install-git-windows-and-mac","title":{"rendered":"How to Install &amp; Use Git Windows and macOS 2026"},"content":{"rendered":"\n<p>Think of&nbsp;<strong>GIT<\/strong>&nbsp;like a smart time machine for your code.<\/p>\n\n\n\n<p>It\u2019s a free tool that developers use to save, manage, and track changes in their projects \u2014 essentially, it\u2019s like hitting \u201c<strong>save<\/strong>\u201d but with much more power. Whether you\u2019re working solo or with a team, GIT helps keep everything organised and safe.<\/p>\n\n\n\n<p><strong>Whether you\u2019re on Windows or macOS, this guide will walk you through installing and using Git with ease.\u200b<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"how-to-install-git-on-windows\">How to&nbsp;<strong>Install GIT on Windows<\/strong><\/h2>\n\n\n\n<p>To download GIT on your <a href=\"https:\/\/www.youstable.com\/blog\/clean-cache-in-windows-11\/\">Windows laptop<\/a> or Desktop, you\u2019ll need to visit their official website<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;git-scm.com\/downloads\/win<\/code><\/pre>\n\n\n\n<p>Once the download is complete, locate the .exe file and double-click it to initiate the installation. Follow the installation prompts. The default settings are suitable for most users.<\/p>\n\n\n\n<p>Once the installation is complete, let\u2019s verify if it was installed correctly on your machine. <strong>To test it, follow these steps:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open the&nbsp;<strong>Command Prompt<\/strong>&nbsp;(<code>cmd<\/code>).<\/li>\n\n\n\n<li>Type&nbsp;<code>git --version<\/code>&nbsp;and press Enter.<\/li>\n\n\n\n<li>You should see the installed Git version displayed.<\/li>\n<\/ul>\n\n\n\n<p>As you can see, GIT 2.29.0 is installed, and now you start setting up your projects to start development.<\/p>\n\n\n\n<p><strong>Setting up your first GIT Repository in Windows<\/strong><\/p>\n\n\n\n<p>After installation, launch GitHub Desktop from the Start Menu or desktop shortcut.<\/p>\n\n\n\n<p>Upon first launch, you\u2019ll be prompted to sign in to your&nbsp;<strong>GitHub account<\/strong>. Enter your credentials to proceed.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Set your name and email address, which will be associated with your commits.<\/li>\n\n\n\n<li>Choose your preferred default text editor for Git operations.\u200b<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To create a new repository, click&nbsp;<strong>\u201cFile\u201d<\/strong>&nbsp;&gt;&nbsp;<strong>\u201cNew Repository\u2026\u201d<\/strong>&nbsp;.<\/li>\n\n\n\n<li>Fill in the repository name, description, local path, and other settings.<\/li>\n\n\n\n<li>Click&nbsp;<strong>\u201cCreate repository\u201d<\/strong>&nbsp;to initialise it.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use your preferred text editor to make changes to the files in your repository.<\/li>\n\n\n\n<li>Return to GitHub Desktop, where you\u2019ll see the changed files listed.<\/li>\n\n\n\n<li>Enter a commit message describing your changes and click&nbsp;<strong>\u201cCommit to main\u201d<\/strong>.<\/li>\n\n\n\n<li>After committing your changes, click on&nbsp;<strong>\u201cPush origin\u201d<\/strong>&nbsp;to upload your commits to GitHub.<\/li>\n<\/ul>\n\n\n\n<p>By following these steps, you can effectively manage your Git repositories using GitHub <a href=\"https:\/\/www.youstable.com\/blog\/how-to-turn-off-the-firewall-in-windows\/\">Desktop on Windows<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"installing-git-on-macos\">Installing GIT on MacOS<\/h2>\n\n\n\n<p>You\u2019ll need to install&nbsp;<strong>Homebrew<\/strong>&nbsp;first using this command on your MacOS Terminal<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"<\/code><\/pre>\n\n\n\n<p>Once Homebrew is installed,&nbsp;<strong>install Git<\/strong>:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nbrew install git\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"verify-the-installation\"><strong>Verify the Installation<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In Terminal, type&nbsp;<code>git --version<\/code>&nbsp;and press Enter.<\/li>\n\n\n\n<li>The installed Git version should be displayed.<\/li>\n<\/ul>\n\n\n\n<p>Setting up your GIT for the first time by providing your username and email address with this command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git config --global user.name \"Your Name\"\ngit config --global user.email \"you@domainname.com\"<\/code><\/pre>\n\n\n\n<p>Now you are done with the <a href=\"https:\/\/www.youstable.com\/blog\/install-node-js-and-npm-windows-macos-linux\/\">basic installation and Setup<\/a> for your GIT, To initiate the repository setup, follow the further steps\u2026<\/p>\n\n\n\n<p>Define the project directory of your application using<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd path\/to\/your\/project<\/code><\/pre>\n\n\n\n<p>Initiate Git:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git init<\/code><\/pre>\n\n\n\n<p>Add files to staging:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git add .<\/code><\/pre>\n\n\n\n<p>Commit the first changes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git commit -m \"Initial commit\"<\/code><\/pre>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/web.archive.org\/web\/20250428130409\/https:\/\/twitter.com\/intent\/tweet?url=https:\/\/www.youstable.com\/blog\/install-git-windows-and-mac\/\" rel=\"noreferrer noopener\"><\/a><a target=\"_blank\" href=\"https:\/\/web.archive.org\/web\/20250428130409\/https:\/\/www.facebook.com\/sharer\/sharer.php?u=https:\/\/www.youstable.com\/blog\/install-git-windows-and-mac\/\" rel=\"noreferrer noopener\"><\/a><a target=\"_blank\" href=\"https:\/\/web.archive.org\/web\/20250428130409\/https:\/\/pinterest.com\/pin\/create\/button\/?url=https:\/\/www.youstable.com\/blog\/install-git-windows-and-mac\/&amp;media=&amp;description=\" rel=\"noreferrer noopener\"><\/a><a target=\"_blank\" href=\"https:\/\/web.archive.org\/web\/20250428130409\/https:\/\/plus.google.com\/share?url=https:\/\/www.youstable.com\/blog\/install-git-windows-and-mac\/\" rel=\"noreferrer noopener\"><\/a><a target=\"_blank\" href=\"https:\/\/web.archive.org\/web\/20250428130409\/mailto:\/?Subject=Awesome%20Post&amp;body=https:\/\/www.youstable.com\/blog\/install-git-windows-and-mac\/\" rel=\"noreferrer noopener\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Think of&nbsp;GIT&nbsp;like a smart time machine for your code. It\u2019s a free tool that developers use to save, manage, and [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":11906,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1195,1134],"tags":[2101],"class_list":["post-11771","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogging","category-linux","tag-how-to-install-use-git-windows-and-macos"],"acf":[],"featured_image_src":"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2025\/12\/How-to-Install-Use-Git-Windows-and-macOS.jpg","author_info":{"display_name":"Prahlad Prajapati","author_link":"https:\/\/www.youstable.com\/blog\/author\/prahladblog"},"_links":{"self":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/11771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/comments?post=11771"}],"version-history":[{"count":4,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/11771\/revisions"}],"predecessor-version":[{"id":15729,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/11771\/revisions\/15729"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media\/11906"}],"wp:attachment":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media?parent=11771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/categories?post=11771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/tags?post=11771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}