Skip to content

Commit 8b70fec

Browse files
Update git.mdx
1 parent 756e009 commit 8b70fec

File tree

1 file changed

+131
-0
lines changed

1 file changed

+131
-0
lines changed

git.mdx

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
---
2+
title: Git
3+
description: Learn how to install Git on your system to manage version control for your documentation
4+
---
5+
6+
Git is a distributed version control system that helps you track changes in your documentation files. You'll need Git installed to work with your documentation repository.
7+
8+
## Prerequisites
9+
10+
Before installing Git, ensure you have administrative privileges on your system.
11+
12+
## Installation by operating system
13+
14+
<Tabs>
15+
<Tab title="Windows">
16+
### Option 1: Download from Git website
17+
18+
1. Visit [git-scm.com](https://git-scm.com/download/win)
19+
2. Download the latest version for Windows
20+
3. Run the installer and follow the setup wizard
21+
4. Accept the default settings unless you have specific requirements
22+
23+
### Option 2: Using Chocolatey
24+
25+
If you have Chocolatey installed, run:
26+
27+
```bash
28+
choco install git
29+
```
30+
31+
### Option 3: Using Winget
32+
33+
If you have Windows Package Manager:
34+
35+
```bash
36+
winget install --id Git.Git -e --source winget
37+
```
38+
</Tab>
39+
40+
<Tab title="macOS">
41+
### Option 1: Using Homebrew (recommended)
42+
43+
If you have Homebrew installed:
44+
45+
```bash
46+
brew install git
47+
```
48+
49+
### Option 2: Download from Git website
50+
51+
1. Visit [git-scm.com](https://git-scm.com/download/mac)
52+
2. Download the latest version for macOS
53+
3. Open the downloaded `.dmg` file and follow the installation instructions
54+
55+
### Option 3: Using Xcode Command Line Tools
56+
57+
Git comes bundled with Xcode Command Line Tools:
58+
59+
```bash
60+
xcode-select --install
61+
```
62+
</Tab>
63+
64+
<Tab title="Linux">
65+
### Ubuntu/Debian
66+
67+
```bash
68+
sudo apt update
69+
sudo apt install git
70+
```
71+
72+
### CentOS/RHEL/Fedora
73+
74+
For CentOS/RHEL:
75+
```bash
76+
sudo yum install git
77+
```
78+
79+
For Fedora:
80+
```bash
81+
sudo dnf install git
82+
```
83+
84+
### Arch Linux
85+
86+
```bash
87+
sudo pacman -S git
88+
```
89+
90+
### Alpine Linux
91+
92+
```bash
93+
sudo apk add git
94+
```
95+
</Tab>
96+
</Tabs>
97+
98+
## Verify installation
99+
100+
After installation, verify Git is working correctly:
101+
102+
```bash
103+
git --version
104+
```
105+
106+
You should see output similar to:
107+
```
108+
git version 2.39.0
109+
```
110+
111+
## Initial configuration
112+
113+
Configure Git with your name and email address:
114+
115+
```bash
116+
git config --global user.name "Your Name"
117+
git config --global user.email "[email protected]"
118+
```
119+
120+
These settings will be used for all your Git commits.
121+
122+
## Next steps
123+
124+
Now that you have Git installed, you can:
125+
126+
- Clone your documentation repository
127+
- Create and manage branches
128+
- Track changes to your documentation files
129+
- Collaborate with your team using version control
130+
131+
For more information about using Git with your documentation, see the [Web editor](/editor/getting-started) section.

0 commit comments

Comments
 (0)