Tutorial

Installation von Git auf Ubuntu 18.04 [Quickstart]

Published on March 5, 2020
Deutsch
Installation von Git auf Ubuntu 18.04 [Quickstart]

Einführung

Versionskontrollsysteme unterstützen Sie bei der Freigabe von und Zusammenarbeit an Softwareentwicklungsprojekten. Git ist eines der beliebtesten Versionskontrollsysteme, die derzeit erhältlich sind.

Diese Anleitung erläutert die Installation und Konfiguration von Git auf einem Ubuntu 18.04 Server. Eine ausführlichere Version dieses Tutorials mit besseren Erklärungen zu den einzelnen Schritten finden Sie unter Installation von Git auf Ubuntu 18.04.

Schritt 1 — Aktualisierung der Standardpakete

Melden Sie sich als sudo-Benutzer ohne Rootberechtigung bei Ihrem Ubuntu 18.04 Server an und aktualisieren Sie zunächst Ihre Standardpakete.

  1. sudo apt update

Schritt 2 — Installation von Git

  1. sudo apt install git

Schritt 3 — Bestätigung der erfolgreichen Installation

Sie können prüfen, ob Sie Git korrekt installiert haben, indem Sie diesen Befehl ausführen und eine Ausgabe erhalten, die der folgenden ähnelt:

  1. git --version
Output
git version 2.17.1

Schritt 4 — Einrichten von Git

Nach der Git-Installation sollten Sie zur Vermeidung von Warnungen es auf Ihre Informationen konfigurieren.

  1. git config --global user.name "Your Name"
  2. git config --global user.email "youremail@domain.com"

Falls Sie diese Datei bearbeiten müssen, verwenden Sie einen Texteditor wie etwa nano:

  1. nano ~/.gitconfig
~/.gitconfig contents
[user]
  name = Your Name
  email = youremail@domain.com

Relevante Tutorials

Unter diesen Links finden Sie ausführlichere Tutorials, die für diesen Leitfaden relevant sind:

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about us


About the authors

Still looking for an answer?

Ask a questionSearch for more help

Was this helpful?
 
Leave a comment


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Join the Tech Talk
Success! Thank you! Please check your email for further details.

Please complete your information!

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel