// Tutorial //

Para instalar Git en Ubuntu 18.04 [Guía de inicio rápido]

Published on November 7, 2019
Español
Para instalar Git en Ubuntu 18.04 [Guía de inicio rápido]

Introducción

Los sistemas de control de versión le permiten hacer aportes y colaborar en proyectos de desarrollo de software. Git es uno de los sistemas de control de versión más populares disponibles actualmente.

Este tutorial le servirá como orientación en la instalación y configuración de Git en un servidor de Ubuntu 18.04. Para obtener una versión más detallada de este tutorial, con mejores explicaciones de cada paso, consulte Cómo instalar Git en Ubuntu 18.04.

Paso 1: Actualizar paquetes predeterminados

Con la sesión iniciada en su servidor de Ubuntu 18.04 como usuario sudo no root, primero actualice sus paquetes predeterminados.

  1. sudo apt update

Paso 2: Instalar Git

  1. sudo apt install git

Paso 3: Confirmar la instalación correcta

Puede confirmar que instaló correctamente Git si ejecuta el siguiente comando y recibe un resultado similar al que se muestra:

  1. git --version
Output
git version 2.17.1

Paso 4: Configurar Git

Ahora que instaló Git, y a fin de prevenir las advertencias, debe configurarlo con su información.

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

Si debe editar este archivo, puede usar un editor de texto como nano:

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

Tutoriales relacionados

Aquí tiene enlaces a tutoriales más detallados relacionados con esta guía:

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

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

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

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
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
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.