Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"index",
"quickstart",
"installation",
"git",
{
"group": "Web editor",
"icon": "mouse-pointer-2",
Expand Down
120 changes: 120 additions & 0 deletions git.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
---
title: Git
description: Learn how to install Git on your system to get started with version control
---

Git is a distributed version control system that tracks changes in your files and enables collaboration with others. You'll need Git installed to work with most development projects.

## Prerequisites

Before installing Git, ensure you have administrative privileges on your system.

## Installation by operating system

<Tabs>
<Tab title="Windows">
### Option 1: Download from Git website

Check warning on line 16 in git.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

git.mdx#L16

': D' should be in lowercase.

1. Visit [git-scm.com](https://git-scm.com/download/win)
2. Download the latest version for Windows
3. Run the installer and follow the setup wizard
4. Accept the default settings unless you have specific requirements

### Option 2: Using package managers

**Using Chocolatey:**
```bash
choco install git
```

**Using Winget:**
```bash
winget install --id Git.Git -e --source winget
```

### Verify installation
```bash
git --version
```
</Tab>

<Tab title="macOS">
### Option 1: Using Homebrew (recommended)

Check warning on line 42 in git.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

git.mdx#L42

': U' should be in lowercase.

Check warning on line 42 in git.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

git.mdx#L42

Use parentheses judiciously.

If you have Homebrew installed:
```bash
brew install git
```

### Option 2: Download from Git website

1. Visit [git-scm.com](https://git-scm.com/download/mac)
2. Download the latest version for macOS
3. Open the downloaded `.dmg` file and follow the installation instructions

### Option 3: Using Xcode Command Line Tools

Git comes bundled with Xcode Command Line Tools:
```bash
xcode-select --install
```

### Verify installation
```bash
git --version
```
</Tab>

<Tab title="Linux">
### Ubuntu/Debian
```bash
sudo apt update
sudo apt install git
```

### CentOS/RHEL/Fedora
**For CentOS/RHEL:**
```bash
sudo yum install git
```

**For Fedora:**
```bash
sudo dnf install git
```

### Arch Linux
```bash
sudo pacman -S git
```

### Verify installation
```bash
git --version
```
</Tab>
</Tabs>

## Initial configuration

After installing Git, configure your identity:

```bash
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
```

You can verify your configuration:
```bash
git config --list
```

## Next steps

Check warning on line 112 in git.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

git.mdx#L112

'Next steps' should use sentence-style capitalization.

With Git installed, you can now:
- Clone repositories from GitHub, GitLab, or other Git hosting services
- Initialize new Git repositories with `git init`
- Start tracking changes in your projects
- Collaborate with others using version control

For more advanced Git usage and concepts, check out the [Git documentation](https://git-scm.com/doc).