|
|
**How to install Git on Linux**
|
|
|
----------------------
|
|
|
Chances are, your Linux distribution already came with Git installed. In order to test that, open a terminal, type
|
|
|
```bash
|
|
|
git --version
|
|
|
```
|
|
|
and press enter. If the git version is shown, git obviously is already installed; otherwise, you will get a "command not found." In that case, install Git with the package management tool of your distribution. On Debian-based distribution such as Ubuntu, use
|
|
|
```bash
|
|
|
sudo apt-get install git-all
|
|
|
```
|
|
|
in Suse, use
|
|
|
```bash
|
|
|
sudo zypper install git-all
|
|
|
```
|
|
|
while on RHEL based distributions
|
|
|
```bash
|
|
|
sudo dnf install git-all
|
|
|
```
|
|
|
will do the job. Check git --version again to see that your install was successful. For more information, see the Git website: [https://git-scm.com/](https://git-scm.com/). |
|
|
\ No newline at end of file |