Skip to Content
Controlo de versões com o Git, 3ª Edição
book

Controlo de versões com o Git, 3ª Edição

by Prem Kumar Ponuthorai, Jon Loeliger
April 2025
Intermediate to advanced
548 pages
15h 7m
Portuguese (Portugal, Brazil)
O'Reilly Media, Inc.
Content preview from Controlo de versões com o Git, 3ª Edição

Apêndice B. Instalando o Git

Por isso, antes de poderes usar o Git, tens de o instalar. Os passos para instalar o Git dependem muito do fornecedor e da versão do teu sistema operativo. Este apêndice descreve como instalar o Git no Linux, macOS e Microsoft Windows. Também partilhamos como podes obter o código fonte do Git e depois construir e instalar a partir dele.

Usando distribuições binárias do Linux

Muitos fornecedores de Linux fornecem pacotes binários pré-compilados para facilitar a instalação de novas aplicações, ferramentas e utilitários. Cada pacote especifica suas dependências, e o gerenciador de pacotes da distribuição normalmente instala os pré-requisitos e o pacote desejado de uma só vez (bem orquestrado e automatizado).

Debian/Ubuntu

Na maioria dos sistemas Debian e Ubuntu, o Git é oferecido como uma coleção de pacotes, onde cada pacote pode ser instalado independentemente, dependendo das tuas necessidades. Antes do lançamento da versão 12.04, o pacote Git primário chamava-se git-core. A partir da versão 12.04, passa a chamar-se simplesmente git. Exemplos de outros pacotes Git incluem git-gui, gitk, gitweb, e git-svn.

Como as distribuições variam muito, é melhor procurar no depósito de pacotes da tua distribuição para obter uma lista completa de pacotes relacionados com o Git.

Este comando instala a última versão (estável) do Git no teu sistema operativo Debian/Ubuntu:

   $ apt-get install git
   

Outras distribuições binárias

Para instalar o Git noutras distribuições ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Criando serviços de IA generativa com a FastAPI

Criando serviços de IA generativa com a FastAPI

Alireza Parandeh
Unificar negócios, dados e código

Unificar negócios, dados e código

Ron Itelman, Juan Cruz Viotti

Publisher Resources

ISBN: 9798341642430