Skip to content

Commit 40a4fde

Browse files
committed
Add installation material
1 parent a907b45 commit 40a4fde

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

material/01-installation.md

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Installation
2+
3+
To manage git repositories on your local machine you need to have git installed locally.
4+
5+
Here's how to install git on major desktop operating systems.
6+
7+
## Windows
8+
9+
Using [winget](https://docs.microsoft.com/en-us/windows/package-manager/winget) (this tool is available on Windows 10 and up)
10+
11+
```bash
12+
winget install --id Git.Git -e --source winget
13+
```
14+
15+
You can also download a binary package from [here](https://github.com/git-for-windows/git/releases/download/v2.43.0.windows.1/Git-2.43.0-64-bit.exe).
16+
17+
## Linux
18+
19+
Install the `git` package using your distribution's package manager.
20+
21+
Here are some major distributions examples.
22+
23+
**Debian | Ubuntu**
24+
25+
```bash
26+
sudo apt install git
27+
```
28+
29+
**Fedora | RedHat**
30+
31+
```bash
32+
sudo dnf install git
33+
```
34+
35+
**openSUSE**
36+
37+
```bash
38+
sudo zypper i git
39+
```
40+
41+
**Arch | Manjaro | Endavour**
42+
43+
```bash
44+
sudo pacman -S git
45+
```
46+
47+
## macOS
48+
49+
- If you have [brew](https://brew.sh/) installed, use the following command.
50+
51+
```bash
52+
brew install git
53+
```
54+
55+
- If you don't, download it from [Xcode](https://developer.apple.com/xcode/)
56+
57+
- If have [MacPorts](https://www.macports.org/) installed use the following command.
58+
59+
```bash
60+
sudo port install git
61+
```

0 commit comments

Comments
 (0)