Install Git

Install Git for version control and collaboration on your documentation.

What is Git

Git is a version control system that helps you track changes to your documentation, collaborate with others, and deploy your site.

Why use Git?

  • Version History: Track every change to your documentation
  • Collaboration: Work with team members on the same documentation
  • Backup: Keep your documentation safe in remote repositories
  • Deployment: Many hosting platforms integrate with Git for automatic deployments

Download Git

  1. Visit the official Git website: https://git-scm.com/

  2. Download the installer for your operating system:

    • Windows: Download the Windows installer
    • macOS: Download the macOS installer
    • Linux: Use your distribution’s package manager or follow the Linux instructions on the website

Install Git

Run the installer and follow the recommended options.

Note

For most users, the default settings are sufficient. You do not need to customize anything during installation.

Verify the installation

After installation is complete, verify that Git is installed correctly.

  1. Open your code editor
  2. Open the built-in terminal
  3. Run the following command:
Bash
git --version

If Git is installed correctly, you should see a version number printed to the screen.

Next steps

With Git installed, you're ready to: