How to Download and Install Git Free Guide
The free, open-source version control system that tracks every change you make — the backbone of modern software development.
Visit Official Site →Is Git Free?
Yes. Git is free and open source under the GNU General Public License version 2 (GPLv2). There is no paid tier, no subscription, and no account requirement. Git can be used for personal projects, commercial work, and enterprise deployments at no cost. Commercial use is explicitly permitted — GPL obligations only trigger if you distribute a modified version of Git itself.
Git is the version control system itself — a command-line tool. Platforms like GitHub, GitLab, and Bitbucket are where you host Git repositories online, and they have their own pricing tiers. You do not need any of them to use Git locally.
System Requirements
Requirements below reflect the current Git for Windows 2.56.x (released September–October 2026).
- OS: Windows 10 or later (64-bit x64 or ARM64). Windows 8.1 support ended with Git for Windows v2.55; Windows 7/8 are no longer supported by current releases.
- Architecture: 64-bit required — the installer is now a 64-bit x64 executable. A separate ARM64 build is available for Windows on ARM devices.
- RAM: ~512 MB minimum; Git itself is very lightweight. 2 GB+ is comfortable if you run Git alongside code editors and IDEs.
- Storage: ~260 MB for the installation, plus space for your repositories and their history.
- Note: Git is completely free (GPLv2). No account is needed to install or use it — a GitHub, GitLab, or Bitbucket account is only required to host repositories remotely.
How to Install Git
- Go to the official site. Visit git-scm.com/download/win. This is the official Git for Windows project — avoid third-party "Git download" sites.
- Download the installer. The download starts automatically. Choose the 64-bit Git for Windows Setup for modern PCs (there is also a portable version if you cannot install software, and an ARM64 build for Windows on ARM).
- Run the installer. Open the downloaded file and click through the setup wizard. Default options are fine for most users — leave the editor, PATH, and line-ending settings as they are unless you have a specific reason to change them.
- Launch Git Bash. After installation, open Git Bash from your Start menu. This gives you a Unix-style terminal where Git commands work exactly as they do in documentation and tutorials.
Getting Started
- Verify the installation. In Git Bash, run
git --version. You should see the version number — if the command is not recognised, Git was not added to your PATH. - Set your identity. Git stamps every commit with a name and email. Run
git config --global user.name "Your Name"andgit config --global user.email "[email protected]". You only need to do this once per computer. - Create or clone a repository. To start a new project from scratch, run
git initinside a folder. To download an existing project, rungit clone https://github.com/user/repo.git. - Check what changed. Run
git statusat any time to see which files are modified, staged, or untracked. This is the command you will run most often. - Stage and commit. Use
git add filename(orgit add .for everything) to stage changes, thengit commit -m "Describe your change"to save a permanent snapshot. - Push to a remote. If you cloned from GitHub or another host, run
git push origin main. If you created the repo locally and your default branch is stillmaster, rename it first withgit branch -M main, then add a remote withgit remote add origin <url>and push.
Useful Tips
- 🐚 Use Git Bash, not Command Prompt. Git Bash ships with Git for Windows and gives you a Unix-style shell where all standard Git documentation works without translation. It also includes common Unix tools like
ls,grep, andssh. - 📋 Run
git statusbefore every commit. It tells you exactly what is staged, modified, and untracked — the single best habit for avoiding accidental commits. - ⏪ Use
git reflogto recover lost commits. If you accidentally reset a branch or delete a commit,git reflogshows the history of where HEAD has been, and you can reset back to the lost commit. - 🚫 Create a
.gitignorefile early. List build artefacts, dependency folders (node_modules/), secrets, and OS files you never want tracked. Once something is committed, ignoring it later does not remove it from history. - 🔄 Pull before you push on shared branches. Running
git pullbeforegit pushavoids the most common "non-fast-forward" rejection when someone else has pushed in the meantime. - ✏️ Set a familiar editor. The installer defaults to Vim, which confuses many beginners. Choose VS Code or Nano during setup, or change it later with
git config --global core.editor "code --wait". - 🔐 Use a credential manager. Git for Windows includes Git Credential Manager, which handles GitHub/GitLab authentication and tokens securely. Accept it during installation so you are not re-entering passwords constantly.
- ⚡ Create aliases for common commands. For example,
git config --global alias.st statuslets you typegit stinstead ofgit status. - 🪟 Check your version. The current release is Git for Windows 2.56.0 (September 2026). Run
git --versionperiodically and update if you are on an older 2.x build — newer versions include security and compatibility fixes.
Git vs GitHub vs GitLab vs Bitbucket
These are frequently confused, and the distinction matters:
- Git: The version control system itself. Runs locally on your computer, requires no internet connection, and is free under the GPLv2. Everything else in this list is a hosting service for Git repositories.
- GitHub: The most popular Git hosting platform, owned by Microsoft. The free tier includes unlimited public and private repositories, unlimited collaborators, 2,000 CI/CD minutes per month, and 500 MB of Packages storage. Best for open source, personal projects, and integration with tools like VS Code, Cursor, and GitHub Actions.
- GitLab: Git hosting with a stronger emphasis on DevOps and self-hosting. The free tier includes 400 compute minutes per month, 10 GiB storage, and up to 5 users. Can be self-hosted on your own server. Best for teams that want full control over the hosting environment or need bundled CI/CD and container registry.
- Bitbucket: Atlassian's Git hosting, tightly integrated with Jira and Confluence. The free plan supports up to 5 users, unlimited private repositories, 50 build minutes per month, and 1 GB storage. Best for small teams already using Atlassian's suite.
You need Git installed regardless of which host you choose. For most individuals and open-source projects, GitHub is the natural default — its free CI/CD allowance is the most generous of the three. GitLab is preferred for self-hosting and DevOps-heavy workflows, though its free compute minutes are far lower than GitHub's. Bitbucket is the right choice if you already use Jira and Confluence.
Troubleshooting Common Issues
- ❌ "git is not recognized" after installation. Git was not added to your PATH. Re-run the installer and choose "Use Git from the Windows Command Prompt" on the PATH selection screen, or add
C:\Program Files\Git\cmdto your PATH manually. - 🔒 "Permission denied (publickey)" on push. Your SSH key is missing or not configured. Either use HTTPS URLs (with Git Credential Manager handling tokens) or set up an SSH key with
ssh-keygenand add it to your GitHub/GitLab account. - ⚠️ Accidentally committed a large file or secret. Git history cannot be easily "un-committed" if you have pushed. Use
git filter-repo(or BFG Repo-Cleaner) to rewrite history, then force-push. For secrets specifically, rotate the credential immediately — treat it as compromised the moment it was committed. - 🔀 "Fatal: refusing to merge unrelated histories." Usually happens when merging a repository that has no shared history with the current one. Run
git pull origin main --allow-unrelated-historiesto override — but only if you are sure both repositories should be combined. - 📁 Files show as modified but you didn't change them. Often a line-ending issue. On Windows, run
git config --global core.autocrlf trueto handle CRLF/LF conversion automatically. - 🔑 Cannot clone a private repository. Confirm you are authenticated. Git Credential Manager should prompt for a login on first clone; if it does not, run
git config --global credential.helper managerto re-enable it. - 🪟 Installer won't run on Windows 8.1 or earlier. Current Git for Windows releases (v2.56+) require Windows 10 or later. Windows 8.1 support ended with v2.55. Use an older, unsupported build at your own risk, or upgrade Windows.
Frequently Asked Questions
Is Git the same as GitHub?
No. Git is the version control system that runs locally on your computer. GitHub is a cloud service for hosting Git repositories, owned by Microsoft. You can use Git without GitHub, but GitHub is built on top of Git and requires it.Do I need to use the command line to use Git?
Not strictly, but it is strongly recommended. GUI clients like GitHub Desktop, GitKraken, Sourcetree, and the built-in Git tools in VS Code and Cursor make Git usable without typing commands. However, learning the command line is faster once you know the basics, and every tutorial assumes it.What are the minimum system requirements for Git?
Windows 10 or later (64-bit x64 or ARM64) for the current release (Git for Windows 2.56.x). Windows 8.1 support ended with v2.55; older Windows versions are no longer supported. Minimum RAM is roughly 512 MB, and the installer requires around 260 MB of free disk space. Git itself is very lightweight.Can I use Git without GitHub?
Yes. Git runs entirely on your local machine and does not require any online service. You can commit, branch, merge, and manage a full history without ever connecting to GitHub. GitHub is just a convenient place to host and share repositories.What are the most important Git commands to learn first?
Five commands cover 90% of early use:git status (what changed), git add (stage changes), git commit (save a snapshot), git pull (download latest), and git push (upload your commits). Learn these before branching or merging.Does Git work on Mac and Linux?
Yes. Git is available on macOS (via the Xcode command line tools, Homebrew, or the official installer at git-scm.com) and on Linux via your distribution’s package manager (sudo apt install git on Debian/Ubuntu, sudo dnf install git on Fedora, and so on).