Git
Português (Brasil) ▾Topics ▾Latest version ▾ git-fetch-pack last updated in 2.43.0

NOME

git-fetch-pack - Recebe os objetos ausentes vindos de um outro repositório

RESUMO

git fetch-pack [--all] [--quiet|-q] [--keep|-k] [--thin] [--include-tag]
	[--upload-pack=<git-upload-pack>]
	[--depth=<n>] [--no-progress]
	[-v] <repositório> [<refs>…​]

DESCRIÇÃO

No lugar utilize git fetch que é um wrapper de maior hierarquia deste comando.

Invokes git-upload-pack on a possibly remote repository and asks it to send objects missing from this repository, to update the named heads. The list of commits available locally is found out by scanning the local refs/ hierarchy and sent to git-upload-pack running on the other end.

Este comando deteriora durante o download de tudo para concluir os refs solicitados do lado remoto quando o lado local não possui um commit com um ancestral comum.

OPÇÕES

--all

Busque todas os refs remotos.

--stdin

Pegue a lista dos refs do stdin, um por linha. Caso haja refs utilizados na linha de comando, além desta opção, os refs do stdin serão processados após as da linha de comando.

Caso --stateless-rpc seja utilizado junto com esta opção, a lista de referências deverá estar no formato do pacote (linha-pkt). Cada ref deve estar num pacote separado e a lista deve terminar com um pacote liberado.

-q
--quiet

Passe o flag -q para o git unpack-objects; isso torna o processo de clonagem menos detalhado.

-k
--keep

Não invoque o git unpack-objects nos dados recebidos, porém crie um único arquivo do pacote a partir dele e armazene-o no banco de dados do objeto. Caso seja utilizado duas vezes, o pacote será bloqueado contra a reembalagem.

--thin

Busque um pacote "thin", que registra os objetos num formato "deltificado" com base nos objetos não inclusos no pacote para reduzir o tráfego de rede.

--include-tag

If the remote side supports it, annotated tags objects will be downloaded on the same connection as the other objects if the object the tag references is downloaded. The caller must otherwise determine the tags this option made available.

--upload-pack=<git-upload-pack>

Use this to specify the path to git-upload-pack on the remote side, if it is not found on your $PATH. Installations of sshd ignores the user’s environment setup scripts for login shells (e.g. .bash_profile) and your privately installed git may not be found on the system default $PATH. Another workaround suggested is to set up your $PATH in ".bashrc", but this flag is for people who do not want to pay the overhead for non-interactive shells by having a lean .bashrc file (they set most of the things up in .bash_profile).

--exec=<git-upload-pack>

O mesmo que --upload-pack=<git-upload-pack>.

--depth=<n>

Limit fetching to ancestor-chains not longer than n. git-upload-pack treats the special depth 2147483647 as infinite even if there is an ancestor-chain that long.

--shallow-since=<data>

Aprofunde ou encurte o histórico de um repositório raso para incluir todas os commits acessíveis após a <data>.

--shallow-exclude=<revisão>

Deepen or shorten the history of a shallow repository to exclude commits reachable from a specified remote branch or tag. This option can be specified multiple times.

--deepen-relative

O argumento --depth determina a quantidade limite dos commits atual da superfície em vez do cume de cada histórico do ramo remoto.

--refetch

Ignora a negociação dos commits com o servidor, a fim de obter (fetch) todos os objetos correspondentes. Use para reaplicar uma nova clonagem parcial do filtro da bolha/árvore.

--no-progress

Não exiba o progresso.

--check-self-contained-and-connected

Exiba "connectivity-ok" caso o pacote recebido seja independente e conectado.

-v

Rode de forma loquaz.

<repositório>

A URL para o repositório remoto.

<refs>…​

The remote heads to update from. This is relative to $GIT_DIR (e.g. "HEAD", "refs/heads/master"). When unspecified, update from all heads the remote side has.

Caso o lado remoto tenha as opções uploadpack.allowTipSHA1InWant, uploadpack.allowReachableSHA1InWant, ou uploadpack.allowAnySHA1InWant ativadas, eles poderão alternativamente ser sha1 com 40-hex.

VEJA TAMBÉM

GIT

Parte do conjunto git[1]

scroll-to-top